summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail038.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail038.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail038.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail038.hs b/testsuite/tests/typecheck/should_fail/tcfail038.hs
new file mode 100644
index 0000000000..1770bde61c
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail038.hs
@@ -0,0 +1,11 @@
+-- !!! duplicate class-method declarations
+
+module ShouldFail where
+
+data NUM = ONE | TWO
+instance Eq NUM where
+ a == b = True
+ a /= b = False
+ a == b = False
+ a /= b = True
+