mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 03:43:51 +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.
1.3 KiB
1.3 KiB
currying_multimode_func.m:022: In clause for `main(di, uo)':
currying_multimode_func.m:022: in argument 1 of call to predicate
currying_multimode_func.m:022: `currying_multimode_func.run_binop_test'/3:
currying_multimode_func.m:022: mode error: variable `V_6' has
currying_multimode_func.m:022: instantiatedness `free',
currying_multimode_func.m:022: expected instantiatedness was
currying_multimode_func.m:022: `(func(in, in) = out is det)'.
currying_multimode_func.m:022: This may have been caused by the following
currying_multimode_func.m:022: error.
currying_multimode_func.m:022: In clause for `main(di, uo)':
currying_multimode_func.m:022: in argument 1 of call to predicate
currying_multimode_func.m:022: `currying_multimode_func.run_binop_test'/3:
currying_multimode_func.m:022: mode error in unification of `V_6' and
currying_multimode_func.m:022: higher-order term based on multi-moded
currying_multimode_func.m:022: function `uint.xor'/2.
currying_multimode_func.m:022: The modes of the argument variables match more
currying_multimode_func.m:022: than one of the called function's modes,
currying_multimode_func.m:022: specifically the first, second and third.
For more information, recompile with `-E'.
currying_multimode_func.m:022: in argument 1 of call to predicate
currying_multimode_func.m:022: `currying_multimode_func.run_binop_test'/3:
currying_multimode_func.m:022: mode error: variable `V_6' has
currying_multimode_func.m:022: instantiatedness `free',
currying_multimode_func.m:022: expected instantiatedness was
currying_multimode_func.m:022: `(func(in, in) = out is det)'.
currying_multimode_func.m:022: This may have been caused by the following
currying_multimode_func.m:022: error.
currying_multimode_func.m:022: In clause for `main(di, uo)':
currying_multimode_func.m:022: in argument 1 of call to predicate
currying_multimode_func.m:022: `currying_multimode_func.run_binop_test'/3:
currying_multimode_func.m:022: mode error in unification of `V_6' and
currying_multimode_func.m:022: higher-order term based on multi-moded
currying_multimode_func.m:022: function `uint.xor'/2.
currying_multimode_func.m:022: The modes of the argument variables match more
currying_multimode_func.m:022: than one of the called function's modes,
currying_multimode_func.m:022: specifically the first, second and third.
For more information, recompile with `-E'.