[m-dev.] diff: fix bug with import of nested module

Warwick Harvey wharvey at cs.monash.edu.au
Fri Sep 25 09:37:07 AEST 1998


Fergus writes:

> Index: tests/invalid/sub_c.err_exp
> ===================================================================
> RCS file: sub_c.err_exp
> diff -N sub_c.err_exp
> --- /dev/null	Fri Sep 25 04:05:00 1998
> +++ sub_c.err_exp	Fri Sep 25 04:38:00 1998
> @@ -0,0 +1,18 @@
> +
> +:- module sub_c.
> +
> +:- interface.
> +
> +:- import_module io.
> +
> +:- pred main(io__state::di, io__state::uo) is det.
> +
> +:- implementation.
> +
> +:- import_module sub_a:sub1.
> +
> +main -->
> +        io__write_string("Hello.\n").
> +
> +
> +

Am I missing something here, or is the expected output of the compiler for 
this test really the source code of the test?

:-)

Warwick




More information about the developers mailing list