[commit: testsuite] master: Test Trac #7778 (ae8959f)

Simon Peyton Jones simonpj at microsoft.com
Tue Apr 30 10:51:43 CEST 2013


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

On branch  : master

https://github.com/ghc/testsuite/commit/ae8959f51560098b1d16aafd33d6536ba7cbba25

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

commit ae8959f51560098b1d16aafd33d6536ba7cbba25
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Apr 29 17:36:27 2013 +0100

    Test Trac #7778

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

 tests/typecheck/should_fail/T7778.hs     |    4 ++++
 tests/typecheck/should_fail/T7778.stderr |    5 +++++
 tests/typecheck/should_fail/all.T        |    1 +
 3 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/tests/typecheck/should_fail/T7778.hs b/tests/typecheck/should_fail/T7778.hs
new file mode 100644
index 0000000..d388620
--- /dev/null
+++ b/tests/typecheck/should_fail/T7778.hs
@@ -0,0 +1,4 @@
+module T7778 where
+
+v :: ((Num Int => Num) ()) => ()
+v = v
diff --git a/tests/typecheck/should_fail/T7778.stderr b/tests/typecheck/should_fail/T7778.stderr
new file mode 100644
index 0000000..89196df
--- /dev/null
+++ b/tests/typecheck/should_fail/T7778.stderr
@@ -0,0 +1,5 @@
+
+T7778.hs:3:19:
+    Expecting one more argument to ‛Num’
+    Expected a type, but ‛Num’ has kind ‛* -> Constraint’
+    In the type signature for ‛v’: v :: (Num Int => Num) () => ()
diff --git a/tests/typecheck/should_fail/all.T b/tests/typecheck/should_fail/all.T
index d551a15..8acc582 100644
--- a/tests/typecheck/should_fail/all.T
+++ b/tests/typecheck/should_fail/all.T
@@ -304,3 +304,4 @@ test('T7748a', normal, compile_fail, [''])
 test('TcNoNullaryTC', when(compiler_lt('ghc', '7.7'), skip), compile_fail, [''])
 test('TcNullaryTCFail', when(compiler_lt('ghc', '7.7'), skip), compile_fail, [''])
 test('T7857', normal, compile_fail, [''])
+test('T7778', normal, compile_fail, [''])





More information about the ghc-commits mailing list