projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
10d501a381dd00bdd2f9c63591cf1e694004899f
[ghc-hetmet.git]
/
ghc
/
tests
/
typecheck
/
should_fail
/
tcfail039.hs
1
--!!! bogus re-use of prelude class-method name (==)
2
--
3
module ShouldFail where
4
5
data NUM = ONE | TWO
6
class EQ a where
7
(==) :: a -> a -> Bool
8
9
instance EQ NUM
10
-- a /= b = False
11
-- a == b = True
12
-- a /= b = False