mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 02:43:40 +00:00
compiler/module_qual.qual_errors.m:
When generating the context for an error message of the form
"In definition of type/inst/mode/pred/func X:", if the X is guaranteed
to be defined in the current module, then print its name unqualified.
Since the module qualifier is guaranteed to be the same as the name
of the module being compiled, its presence in the error message
adds no information and is therefore only clutter.
tests/invalid/errors.err_exp:
tests/invalid/errors1.err_exp:
tests/invalid/int_impl_imports.err_exp:
tests/invalid/kind.err_exp:
tests/invalid/test_nested.err_exp:
tests/invalid/type_arity.err_exp:
tests/invalid/undef_type.err_exp:
tests/invalid_make_int/missing_interface_import.int_err_exp:
tests/invalid_make_int/missing_interface_import.int_err_exp2:
Expect the updated error message.
tests/invalid_make_int/missing_interface_import.m:
Fix a comment.
16 lines
884 B
Plaintext
16 lines
884 B
Plaintext
test_nested.m:013: Error: module `parent' has a submodule named
|
|
test_nested.m:013: `private_child', but it is visible only to its other
|
|
test_nested.m:013: submodules.
|
|
test_nested.m:014: Error: module `parent' does not have a submodule named
|
|
test_nested.m:014: `undeclared_child'.
|
|
test_nested.m:017: In module `test_nested': error:
|
|
test_nested.m:017: the absence of an `:- import_module' or `:- use_module'
|
|
test_nested.m:017: declaration for `parent2' prevents access to the
|
|
test_nested.m:017: `:- use_module' declaration for its child module
|
|
test_nested.m:017: `parent2.child'.
|
|
test_nested.m:024: In the fourth argument of function symbol `foo' of the type
|
|
test_nested.m:024: `foo'/0:
|
|
test_nested.m:024: error: undefined type `parent.nonexistent_child.foo'/0.
|
|
test_nested.m:024: (No module named `parent.nonexistent_child' has been
|
|
test_nested.m:024: imported.)
|