mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 04:13:46 +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.
9 lines
386 B
Plaintext
9 lines
386 B
Plaintext
kind.m:009: In type definition: error: ill-formed type `K1(int)'.
|
|
kind.m:012: In `:- func' declaration:
|
|
kind.m:012: in the first argument:
|
|
kind.m:012: error: ill-formed type `K2(string)'.
|
|
kind.m:016: In definition of inst `i'/1:
|
|
kind.m:016: error: variable used as inst constructor.
|
|
kind.m:018: In definition of mode `m'/1:
|
|
kind.m:018: error: variable used as inst constructor.
|