mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 11:54:02 +00:00
Estimated hours taken: 3.5 Fix a bug reported by Warwick Harvey <wharvey@cs.monash.edu.au> where importing a nested module without first importing the parent module resulted in a software error when building the dependencies. compiler/modules.m: Change a call to `map__det_insert' into `map__set', to avoid a `map__det_insert failed' error, and add some detailed comments explaining why. tests/invalid/Mmakefile: tests/invalid/sub_a.m: tests/invalid/sub_b.m: tests/invalid/sub_b.err_exp: tests/invalid/sub_c.m: tests/invalid/sub_c.err_exp: Add a couple of test cases.
5 lines
186 B
Plaintext
5 lines
186 B
Plaintext
sub_b.m:012: In module `sub_b':
|
|
sub_b.m:012: error in `import_module' declaration:
|
|
sub_b.m:012: module `sub_a:sub1' is inaccessible.
|
|
For more information, try recompiling with `-E'.
|