Files
mercury/tests/invalid/ho_unique_error.err_exp
Simon Taylor 2cf20500b5 The argument offset for higher-order calls was being set
Estimated hours taken: 0.25

compiler/unique_modes.m:
	The argument offset for higher-order calls was being set
	to 0, not 1 (the higher-order term is not included in
	the argument list). This resulted in the argument numbers
	in error messages for higher-order calls being one less
	than expected.

tests/invalid/Mmakefile:
tests/invalid/ho_unique_error.m:
tests/invalid/ho_unique_error.err_exp:
	Test case.
1999-07-14 07:15:37 +00:00

6 lines
375 B
Plaintext

ho_unique_error.m:012: In clause for `call_ho(di, uo)':
ho_unique_error.m:012: in argument 3 (i.e. argument 2 of the called predicate) of higher-order predicate call:
ho_unique_error.m:012: mode error: variable `DCG_0' has instantiatedness `mostly_unique',
ho_unique_error.m:012: expected instantiatedness was `unique'.
For more information, try recompiling with `-E'.