Files
mercury/tests/invalid/nested_impl_in_int.err_exp
Fergus Henderson 2181967d99 Implement some parts of the support for nested modules that I had
Estimated hours taken: 5

Implement some parts of the support for nested modules that I had
forgotten about.

compiler/modules.m:
	Allow the `:- interface' and `:- implementation' parts of
	nested modules to be separated.
	Check that `:- implementation' declarations for nested
	modules don't occur in the interface section of the parent module.

tests/hard_coded/nested3.m:
tests/hard_coded/nested3.exp:
tests/invalid/nested_impl_in_int.m:
tests/invalid/nested_impl_in_int.err_exp:
	Test cases for the above-mentioned feature.

tests/hard_coded/Mmakefile:
	Add `RM_C=:', so that the nested modules tests work with
	parallel makes, and then enable those tests.
1998-07-26 16:36:15 +00:00

10 lines
638 B
Plaintext

nested_impl_in_int.m:020: In interface for module `nested_impl_in_int':
nested_impl_in_int.m:020: in definition of sub-module `child':
nested_impl_in_int.m:020: error: `:- implementation.' declaration for sub-module
nested_impl_in_int.m:020: occurs in interface section of parent module.
nested_impl_in_int.m:037: In interface for module `nested_impl_in_int':
nested_impl_in_int.m:037: in definition of sub-module `child2':
nested_impl_in_int.m:037: error: `:- implementation.' declaration for sub-module
nested_impl_in_int.m:037: occurs in interface section of parent module.
For more information, try recompiling with `-E'.