summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/typecheck/should_fail/tcfail038.hs
blob: 1770bde61c9abb12f6c53c0a75378d55aa5f75a5 (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