projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 1997-07-30 23:52:45 by sof]
[ghc-hetmet.git]
/
ghc
/
compiler
/
tests
/
typecheck
/
should_fail
/
tcfail034.hs
diff --git
a/ghc/compiler/tests/typecheck/should_fail/tcfail034.hs
b/ghc/compiler/tests/typecheck/should_fail/tcfail034.hs
index
e0d0ffe
..
82aa18b
100644
(file)
--- a/
ghc/compiler/tests/typecheck/should_fail/tcfail034.hs
+++ b/
ghc/compiler/tests/typecheck/should_fail/tcfail034.hs
@@
-10,6
+10,8
@@
I came across a rather nasty error message when I gave a function an
incorrect type signature (the context is wrong). I can remember reading
in the source about this problem - I just thought I'd let you know anyway :-)
-}
+module ShouldSucceed where
+
test::(Num a, Eq a) => a -> Bool
test x = (x `mod` 3) == 0