Files
mercury/tests/invalid/magicbox.err_exp
Zoltan Somogyi f564e463b4 Print the causes of unmet determinism requirements.
compiler/det_report.m:
    When a scope that requires a goal to have a certain determinism doesn't,
    don't just print a message saying there is a mismatch between the actual
    and required determinisms; also print the cause of that mismatch.

    Fix a case error in an error message.

tests/invalid/det_atomic_goal_msgs.err_exp:
tests/invalid/magicbox.err_exp:
tests/invalid/require_det_in_lambda.err_exp:
tests/invalid/require_scopes.err_exp:
    Expect the compiler's newly expanded and fixed output.
2015-03-12 03:28:49 +11:00

6 lines
300 B
Plaintext

magicbox.m:039: In `arguments_handler'(di, uo, out):
magicbox.m:039: error: determinism declaration not satisfied.
magicbox.m:039: Declared `cc_multi', inferred `cc_nondet'.
magicbox.m:056: Call to `string.to_int'(in, out) can fail.
magicbox.m:062: Call to `string.to_int'(in, out) can fail.