Files
mercury/tests/invalid/undef_symbol.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

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