mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
Estimated hours taken: 4
Branches: main
Fix a bug in mode analysis which caused spurious errors
for code containing unifications which always fail.
compiler/inst_util.m:
Fix the code to abstractly unify bound inst lists.
The old code was combining determinisms as if they
were the determinisms of conjuncts when it should
have been treating them as the determinisms of the
arms of a switch.
compiler/det_analysis.m:
Add det_switch_detism for use by inst_util.m.
tests/hard_coded/Mmakefile:
tests/hard_coded/failure_unify.{m,exp}:
Test case.
2 lines
15 B
Plaintext
2 lines
15 B
Plaintext
test succeeded
|