mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-27 23:34:52 +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.
4 lines
200 B
Plaintext
4 lines
200 B
Plaintext
require_det_in_lambda.m:017: Error: required determinism is `det', but actual
|
|
require_det_in_lambda.m:017: determinism is `semidet'.
|
|
require_det_in_lambda.m:018: Call to `int.<'(in, in) can fail.
|