Files
mercury/tests/invalid/transitive_import_class.err_exp
Zoltan Somogyi 9ab132ac57 Simplify error messages about unimported ancestors.
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.
2021-08-17 23:21:12 +10:00

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.)