summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail023.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail023.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail023.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail023.hs b/testsuite/tests/typecheck/should_fail/tcfail023.hs
new file mode 100644
index 0000000000..74bcaf3a4b
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail023.hs
@@ -0,0 +1,16 @@
+module ShouldFail where
+
+-- !!! Duplicate instances
+
+data B = C
+
+class A a where
+ op :: a -> Bool
+
+instance A B where
+ op C = True
+
+instance A B where
+ op C = True
+
+