mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-18 02:43:40 +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.
15 lines
928 B
Plaintext
15 lines
928 B
Plaintext
transitive_import_class.m:022: In clause for function `semidet_id'/1:
|
|
transitive_import_class.m:022: in function result term of clause head:
|
|
transitive_import_class.m:022: error: undefined symbol
|
|
transitive_import_class.m:022: `transitive_import_class3.to_int'/1.
|
|
transitive_import_class.m:022: (The module `transitive_import_class3' has not
|
|
transitive_import_class.m:022: been imported.)
|
|
transitive_import_class.m:023: In clause for function `semidet_id'/1:
|
|
transitive_import_class.m:023: in function result term of clause head:
|
|
transitive_import_class.m:023: in argument 1 of functor
|
|
transitive_import_class.m:023: `transitive_import_class3.to_int/1':
|
|
transitive_import_class.m:023: error: undefined symbol
|
|
transitive_import_class.m:023: `transitive_import_class3.from_int'/1.
|
|
transitive_import_class.m:023: (The module `transitive_import_class3' has not
|
|
transitive_import_class.m:023: been imported.)
|