mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-18 23:35:25 +00:00
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.
13 lines
285 B
Mathematica
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).
|
|
|