Commit Graph

2 Commits

Author SHA1 Message Date
Fergus Henderson
3636a59890 Change the expected error message to match what is actually output.
Estimated hours taken: 0.25

tests/nullary_ho_func_error.err_exp:
	Change the expected error message to match what is actually output.
1997-07-25 02:03:43 +00:00
Fergus Henderson
be4b9f1d20 Allow zero-arity higher-order function terms.
compiler/typecheck.m:
compiler/modecheck_unify.m:
	Allow apply/1.

compiler/mercury_to_mercury.m:
	Fix the output of nullary higher-order function insts:
	previously it would output `(func() = Mode is Det)',
	but the correct output is `((func) = Mode is Det)'.

doc/reference_manual.texi:
	Document that zero-arity higher-order function
	types, insts, modes, lambda expressions, and applications
	are allowed.

tests/hard_coded/Mmake:
tests/hard_coded/nullary_ho_func.m:
tests/hard_coded/nullary_ho_func.exp:
tests/invalid/Mmake:
tests/invalid/nullary_ho_func_error.m:
tests/invalid/nullary_ho_func_error.err_exp:
	Test cases relating to the above change.
1997-07-23 15:37:01 +00:00