summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail021.hs
blob: af11b56df97eacd640e636eff9d2449bc06c1f20 (plain)
1
2
3
4
5
6
7
8
-- !!! Illegally giving methods in a pattern binding (for no v good reason...)

module ShouldFail where

data Foo = MkFoo Int

instance Eq Foo where
    ((==), (/=)) = (\x -> \y -> True, \x -> \y -> False)