mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
Estimated hours taken: 0.75 compiler/modecheck_unify.m: Fix a bug which caused the compiler to generate incorrect code for the case where a function had the same name and arity as a data constructor (but a different return type), and the data constructor was used with an explicit module qualifier -- it incorrectly ignored the types and chose the function rather than the data constructor. tests/hard_coded/Mmakefile: tests/hard_coded/func_ctor_ambig.m: tests/hard_coded/func_ctor_ambig.exp: Regression test.
5 lines
44 B
Plaintext
5 lines
44 B
Plaintext
bar = 42
|
|
bar2 = 42
|
|
baz = ambig
|
|
baz2 = ambig
|