Commit Graph

3 Commits

Author SHA1 Message Date
Fergus Henderson
fd5820c133 Fix a small bug (wrong variable name) in the expected output
Estimated hours taken: 0.25

tests/hard_coded/nullary_ho_func.exp:
	Fix a small bug (wrong variable name) in the expected output
	for this test case.
1997-08-17 21:44:42 +00:00
Fergus Henderson
4de1ea8ae2 Test the output of type_name/1 for nullary higher-order function
Estimated hours taken: 0.25

tests/hard_coded/nullary_ho_func.m:
tests/hard_coded/nullary_ho_func.exp:
	Test the output of type_name/1 for nullary higher-order function
	types.
1997-08-15 15:36:56 +00:00
Fergus Henderson
cff02efa2f 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:29:16 +00:00