Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/e45870ee91073809c8f3c2bcecaba5a6a6ceab74

>---------------------------------------------------------------

commit e45870ee91073809c8f3c2bcecaba5a6a6ceab74
Author: Simon Peyton Jones <[email protected]>
Date:   Wed Jul 11 10:09:45 2012 +0100

    Add tcfail209a

>---------------------------------------------------------------

 tests/typecheck/should_fail/tcfail209a.hs     |    4 ++++
 tests/typecheck/should_fail/tcfail209a.stderr |    6 ++++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/tests/typecheck/should_fail/tcfail209a.hs 
b/tests/typecheck/should_fail/tcfail209a.hs
new file mode 100644
index 0000000..90abb73
--- /dev/null
+++ b/tests/typecheck/should_fail/tcfail209a.hs
@@ -0,0 +1,4 @@
+module TcFail209a where
+
+g :: ((Show a, Num a), Eq a) => a -> a
+g = undefined
diff --git a/tests/typecheck/should_fail/tcfail209a.stderr 
b/tests/typecheck/should_fail/tcfail209a.stderr
new file mode 100644
index 0000000..a21103b
--- /dev/null
+++ b/tests/typecheck/should_fail/tcfail209a.stderr
@@ -0,0 +1,6 @@
+
+tcfail209a.hs:3:6:
+    Illegal tuple constraint (Show a, Num a)
+    (Use -XConstraintKinds to permit this)
+    In the type signature for `g':
+      g :: ((Show a, Num a), Eq a) => a -> a



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to