mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 03:13:40 +00:00
compiler/det_report.m:
... when a "declared det, inferred multi" kind of determinism error
is caused by the (probably unexpected, possibly hard-to-see) presence
of a disjunction.
Change the wording to refer to "disjuncts" instead of "clauses";
while in Mercury, all clauses in multi-clause definitions are implicitly
also disjuncts, not all disjuncts are whole clauses.
tests/invalid/bug496.err_exp:
tests/invalid/det_errors.err_exp:
tests/invalid/not_a_switch.err_exp:
tests/invalid/require_scopes.err_exp:
tests/invalid/switch_arm_multi_not_det.err_exp:
Expect the updated form of the error message.
15 lines
1004 B
Plaintext
15 lines
1004 B
Plaintext
switch_arm_multi_not_det.m:034: Error: the arms of the switch on Name are
|
|
switch_arm_multi_not_det.m:034: required have a determinism that is
|
|
switch_arm_multi_not_det.m:034: acceptable in a `det' context, but the actual
|
|
switch_arm_multi_not_det.m:034: determinism of the arm for "c" is `cc_multi'.
|
|
switch_arm_multi_not_det.m:034: Disjunction has more than one disjunct with
|
|
switch_arm_multi_not_det.m:034: solutions.
|
|
switch_arm_multi_not_det.m:035: This later disjunct may have a solution.
|
|
switch_arm_multi_not_det.m:036: Error: the arms of the switch on Name are
|
|
switch_arm_multi_not_det.m:036: required have a determinism that is
|
|
switch_arm_multi_not_det.m:036: acceptable in a `det' context, but the actual
|
|
switch_arm_multi_not_det.m:036: determinism of the arm for "d" is `cc_multi'.
|
|
switch_arm_multi_not_det.m:036: Disjunction has more than one disjunct with
|
|
switch_arm_multi_not_det.m:036: solutions.
|
|
switch_arm_multi_not_det.m:037: This later disjunct may have a solution.
|