Files
mercury/tests/invalid/multimode_addr_problems.err_exp
Zoltan Somogyi 8a1c24010c Expand a diagnostic, and use quotes more consistently.
compiler/mode_errors.m:
    When a closure using a defined predicate/function matches more than one
    procedure, does not just print this fact; list the mode numbers of the
    matched procedures as well.

compiler/modecheck_unify.m:
    Record the extra info for mode_errors.m.

compiler/det_analysis.m:
    Put quotes around var names more consistently.

tests/invalid/currying_multimode_func.err_exp:
tests/invalid/multimode_addr_problems.err_exp:
tests/invalid/one_member.err_exp:
tests/invalid/promise_equivalent_solutions_test_1.err_exp:
tests/invalid/promise_equivalent_solutions_test_2.err_exp:
    Expect updated diagnostics.
2024-05-23 17:53:15 +10:00

1.3 KiB

multimode_addr_problems.m:027: In clause for `main(di, uo)':
multimode_addr_problems.m:027: mode error in unification of `Abs' and
multimode_addr_problems.m:027: higher-order term based on multi-moded
multimode_addr_problems.m:027: predicate
multimode_addr_problems.m:027: `multimode_addr_problems.absolute'/2.
multimode_addr_problems.m:027: The modes of the argument variables match more
multimode_addr_problems.m:027: than one of the called predicate's modes,
multimode_addr_problems.m:027: specifically the first and second.
multimode_addr_problems.m:052: In clause for `my_foldl(in((func(in, in) = out
multimode_addr_problems.m:052: is det)), in, in) = out':
multimode_addr_problems.m:052: mode error in unification of `P' and
multimode_addr_problems.m:052: higher-order term based on multi-moded
multimode_addr_problems.m:052: predicate `multimode_addr_problems.f2p'/4.
multimode_addr_problems.m:052: The modes of the argument variables including
multimode_addr_problems.m:052: `TypeInfo_for_L', `TypeInfo_for_A' and `F' do
multimode_addr_problems.m:052: not match any of the called predicate's modes.
For more information, recompile with `-E'.