mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 19:33:46 +00:00
17 lines
471 B
Mathematica
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).
|