mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 05:13:48 +00:00
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.
18 lines
1.3 KiB
Plaintext
18 lines
1.3 KiB
Plaintext
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 [38;5;203mmatch more[39;49m
|
||
multimode_addr_problems.m:027: [38;5;203mthan one[39;49m 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: [38;5;87m`TypeInfo_for_L',[39;49m [38;5;87m`TypeInfo_for_A'[39;49m and [38;5;87m`F'[39;49m [38;5;203mdo[39;49m
|
||
multimode_addr_problems.m:052: [38;5;203mnot match any[39;49m of the called predicate's modes.
|
||
For more information, recompile with `-E'.
|