projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
typecheck
/
should_fail
/
tcfail036.hs
diff --git a/ghc/compiler/tests/typecheck/should_fail/tcfail036.hs
b/ghc/compiler/tests/typecheck/should_fail/tcfail036.hs
new file mode 100644
(file)
index 0000000..
eb9f9af
--- /dev/null
+++ b/
ghc/compiler/tests/typecheck/should_fail/tcfail036.hs
@@ -0,0
+1,10
@@
+--!!! prelude class name in an instance-tycon position
+--
+module M where
+
+data NUM = ONE | TWO
+instance Num NUM
+ where ONE + ONE = TWO
+instance Num NUM
+instance Eq Num
+--instance Text Num