Commit Graph

1 Commits

Author SHA1 Message Date
Simon Taylor
20c791b2dd Fix a bug in record syntax reported by Tom Conway which caused a
Estimated hours taken: 1

Fix a bug in record syntax reported by Tom Conway which caused a
compiler abort if there was a field and a constructor with the
same name.

compiler/post_typecheck.m:
	Check for a matching constructor before trying to
	expand out a field access function.

tests/valid/Mmakefile:
tests/valid/record_syntax_bug.m:
	Test case.
2000-05-04 04:33:25 +00:00