mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Estimated hours taken: 2
Branches: main
compiler/det_analysis.m:
Fix a bug: when computing FailingContexts for a complicated
unification, allow the complicated unification to be of the form
X = f(...) as well as X = Y.
Add conditionally-compiled trace code to help debug problems like this.
tests/hard_coded/complicated_unify_bug.{m,exp}:
New test case to test for the bug.
tests/hard_coded/Mmakefile:
Enable the new test case.
7 lines
90 B
Plaintext
7 lines
90 B
Plaintext
a(2) aa
|
|
a(5) aa
|
|
b("4 four") diff
|
|
b("five 5") diff
|
|
b("six six") same
|
|
b("seven eight") diff
|