mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 03:43:51 +00:00
Estimated hours taken: 0.5 Fix a bug reported by Tomas By which caused multiple definition errors when two modules used a third module, and one of the modules imported the other. compiler/modules.m Delay processing of short interfaces until all long interfaces have been read to avoid reading both the long and short interface for a module. tests/valid/module_*.m Add a test case.
8 lines
144 B
Mathematica
8 lines
144 B
Mathematica
:- module module_a.
|
|
:- interface.
|
|
:- use_module io.
|
|
:- import_module module_e.
|
|
:- use_module module_b.
|
|
:- type module_a__foo == module_b__foo.
|
|
|