Files
mercury/tests/invalid/constructor_warning.err_exp
David Jeffery bdc4b9d866 Test case for the more verbose constructor misuse warnings.
Estimated hours taken: 0.1

Test case for the more verbose constructor misuse warnings.

tests/invalid/constructor_warning.m
	A simple test case with some constructors used with the wrong arities.
tests/invalid/constructor_warning.err_exp
	The expected results.
1997-04-19 07:52:42 +00:00

10 lines
624 B
Plaintext

constructor_warning.m:016: In clause for predicate `constructor_warning:bar/1':
constructor_warning.m:016: in argument 1 of clause head:
constructor_warning.m:016: error: wrong number of arguments (0; should be 1 or 2)
constructor_warning.m:016: in use of constructor `foo_baz'.
constructor_warning.m:017: In clause for predicate `constructor_warning:bar/1':
constructor_warning.m:017: in argument 1 of clause head:
constructor_warning.m:017: error: wrong number of arguments (1; should be 0)
constructor_warning.m:017: in use of constructor `fanta_fanta_fanta'.
For more information, try recompiling with `-E'.