summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail073.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail073.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail073.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail073.hs b/testsuite/tests/typecheck/should_fail/tcfail073.hs
new file mode 100644
index 0000000000..c52d39ae08
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail073.hs
@@ -0,0 +1,10 @@
+-- what error do you get if you redefined Prelude instances?
+
+module ShouldFail where
+
+f :: (Eq a) => (a,a) -> (a,a) -> Bool
+f x y = x == y
+
+instance Eq a => Eq (a,b) where
+ (m,n) == (o,p) = m == o
+