Files
mercury/tests/invalid/constrained_poly_insts3.m
Zoltan Somogyi 3dc4babb24 Update the style of more test cases.
And update expected output files for changes in line numbers.
2021-07-27 13:29:46 +10:00

27 lines
650 B
Mathematica

%---------------------------------------------------------------------------%
% vim: ts=4 sw=4 et ft=mercury
%---------------------------------------------------------------------------%
:- module constrained_poly_insts3.
:- interface.
:- import_module list.
:- type thing == list(list(int)).
:- inst thing == list_skel(ground).
:- pred p1(thing::in(I), thing::out(I)) is det.
%---------------------------------------------------------------------------%
:- implementation.
p1(X, Y) :-
q(X, Y).
:- pred q(thing:in(thing), thing::out(thing)) is det.
q(X, X).
%---------------------------------------------------------------------------%