Files
mercury/tests/hard_coded/func_ctor_ambig.exp
Fergus Henderson 5f196b4f9b Fix a bug which caused the compiler to generate incorrect
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.
1998-02-19 03:17:16 +00:00

5 lines
44 B
Plaintext

bar = 42
bar2 = 42
baz = ambig
baz2 = ambig