mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 03:13:40 +00:00
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.
6 lines
300 B
Plaintext
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.
|