Files
mercury/tests/invalid/switch_arm_multi_not_det.err_exp
Zoltan Somogyi c5fc9a929d Print the contexts of later disjuncts ...
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.
2022-12-04 23:33:37 +11:00

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.