mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 04:43:53 +00:00
Estimated hours taken: 4 Fix a bug that caused the compiler to report spurious unique mode errors for cases involving nested conjunctions, reordering, and unique modes. compiler/modes.m: When modechecking conjunctions, if the conjunction as a whole delays, make sure that we restore the original live_vars set. compiler/mode_info.m: Add mode_info_get_live_vars/2 and mode_info_set_live_vars/3, for use by modes.m. tests/hard_coded/Mmakefile: tests/hard_coded/reorder_di.m: tests/hard_coded/reorder_di.exp: Regression test for the above-mentioned bug.
5 lines
17 B
Plaintext
5 lines
17 B
Plaintext
foo
|
|
foo
|
|
quux
|
|
bar
|