mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-24 05:43:53 +00:00
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.
10 lines
638 B
Plaintext
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'.
|