mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
21 lines
507 B
Mathematica
21 lines
507 B
Mathematica
%---------------------------------------------------------------------------%
|
|
% vim: ts=4 sw=4 et ft=mercury
|
|
%---------------------------------------------------------------------------%
|
|
|
|
:- module duplicate_instance_static_link.
|
|
:- interface.
|
|
:- import_module io.
|
|
|
|
:- pred main(state::di, state::uo) is det.
|
|
|
|
:- implementation.
|
|
:- import_module enum.
|
|
|
|
% This instance definition conflicts with the one in library/int.m.
|
|
:- instance enum(int) where [
|
|
to_int(_) = 0,
|
|
from_int(X) = X
|
|
].
|
|
|
|
main --> [].
|