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.
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.