Files
mercury/tests/valid/pred_with_no_modes.m
Fergus Henderson b44a9fa042 Add a regression test for the bug in polymorphism.m that I just fixed.
Estimated hours taken: 0.25

tests/valid/Mmake:
tests/valid/pred_with_no_modes.m:
	Add a regression test for the bug in polymorphism.m that I just fixed.
1997-06-02 06:45:35 +00:00

13 lines
285 B
Mathematica

% This is a regression test; version 0.6 or thereabouts got
% an internal error in arg_modes.m, due to a bug in polymorphism.m
% for predicates with no modes.
:- module pred_with_no_modes.
:- implementation.
:- pred foo(((func int) = T2), T2).
foo(X, Y) :-
Y = apply(X,1).