diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail021.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail021.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail021.hs b/testsuite/tests/typecheck/should_fail/tcfail021.hs new file mode 100644 index 0000000000..af11b56df9 --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail021.hs @@ -0,0 +1,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) |