Files
mercury/tests/valid/higher_order_implied_mode.m
Fergus Henderson 2f92c3a095 Regression test for bug in modecheck_call.m with handling
Estimated hours taken: 0.25

tests/valid/Mmake:
tests/valid/higher_order_implied_mode.m:
	Regression test for bug in modecheck_call.m with handling
	of implied modes of higher-order calls.
1997-07-03 05:55:40 +00:00

13 lines
254 B
Mathematica

:- module higher_order_implied_mode.
:- interface.
:- pred p is semidet.
:- implementation.
p :- (X = 1 ; X = 2), r(q(X)).
:- pred q(int::in, int::out) is det.
q(X, X).
:- pred r(pred(int)).
:- mode r(pred(out) is det) is semidet.
r(P) :- call(P, 42).