mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 11:54:02 +00:00
compiler/typecheck_errors.m:
Replace the indirect computation of a set using nondet code
inside a call to solutions/2 with direct code using set operations.
Move code that constructs the end of an error message sentence
to the code that constructs its beginning. This can replace
a single sentence with a subsidiary clause in parentheses
with two simpler sentences, which is easier to read anyway.
tests/invalid/transitive_import_class.err_exp:
tests/invalid/undef_symbol.err_exp:
tests/invalid_submodules/missing_parent_import.err_exp:
Expect the updated form of the affected error messages.
9 lines
489 B
Plaintext
9 lines
489 B
Plaintext
undef_symbol.m:018: In clause for predicate `main'/2:
|
|
undef_symbol.m:018: error: undefined predicate `undef_symbol.r'/2.
|
|
undef_symbol.m:023: In clause for predicate `p'/2:
|
|
undef_symbol.m:023: error: undefined predicate `string.append'/3.
|
|
undef_symbol.m:023: (The module `string' has not been imported.)
|
|
undef_symbol.m:029: In clause for predicate `q'/2:
|
|
undef_symbol.m:029: error: undefined symbol `term.context'/2.
|
|
undef_symbol.m:029: (The module `term' has not been imported.)
|