Files
mercury/tests/valid/pred_with_no_modes.m
Zoltan Somogyi c03b11ca48 Update the style of more test cases.
And updated expected outputs for changed line numbers.
2021-07-27 19:29:21 +10:00

17 lines
471 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
%
% 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).