mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
17 lines
382 B
Mathematica
17 lines
382 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module bad_instance.
|
|
:- interface.
|
|
|
|
:- type bar(T)
|
|
---> bar(T).
|
|
|
|
:- typeclass foo(A, B) where [].
|
|
:- instance foo(bar(T), U).
|
|
|
|
:- implementation.
|
|
|
|
:- instance foo(bar(T), T) where [].
|