summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail038.hs
blob: f9e80823d442225bbb942f590a20a78e0ca9e2f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
-- !!! duplicate class-method declarations

module ShouldFail where

data NUM = ONE | TWO
instance Eq NUM where
        a == b = True
        a /= b = False
        a == b = False
        a /= b = True