mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 04:13:46 +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.
20 lines
232 B
Mathematica
20 lines
232 B
Mathematica
|
|
:- module sub_b.
|
|
|
|
:- interface.
|
|
|
|
:- import_module io.
|
|
|
|
:- pred main(io__state::di, io__state::uo) is det.
|
|
|
|
:- implementation.
|
|
|
|
:- import_module sub_a:sub1.
|
|
:- import_module sub_a.
|
|
|
|
main -->
|
|
io__write_string("Hello.\n").
|
|
|
|
|
|
|