[project @ 1997-11-25 11:52:10 by simonm]
[ghc-hetmet.git] / ghc / tests / typecheck / should_fail / tcfail021.hs
1 --!!! Illegally giving methods in a pattern binding (for no v good reason...)
2
3 module ShouldFail where
4
5 data Foo = MkFoo Int
6
7 instance Eq Foo where
8     ((==), (/=)) = (\x -> \y -> True, \x -> \y -> False)