summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail036.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail036.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail036.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail036.hs b/testsuite/tests/typecheck/should_fail/tcfail036.hs
new file mode 100644
index 0000000000..ade1720ccc
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/tcfail036.hs
@@ -0,0 +1,10 @@
+-- !!! prelude class name in an instance-tycon position
+--
+module ShouldFail where
+
+data NUM = ONE | TWO
+instance Num NUM
+ where ONE + ONE = TWO
+instance Num NUM
+instance Eq Num
+--instance Text Num