diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2012-07-11 10:09:45 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2012-07-11 10:09:45 +0100 |
commit | 55b54681749fc3266d41f762b52bb675d6f65811 (patch) | |
tree | e7af5692a14de0f6f233e01f04a607dab1c2b35a /testsuite | |
parent | 547ab6f4595c6d6d6f82ef8a39f6d293380e8dbf (diff) | |
download | haskell-55b54681749fc3266d41f762b52bb675d6f65811.tar.gz |
Add tcfail209a
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail209a.hs | 4 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail209a.stderr | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail209a.hs b/testsuite/tests/typecheck/should_fail/tcfail209a.hs new file mode 100644 index 0000000000..90abb73520 --- /dev/null +++ b/testsuite/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/testsuite/tests/typecheck/should_fail/tcfail209a.stderr b/testsuite/tests/typecheck/should_fail/tcfail209a.stderr new file mode 100644 index 0000000000..a21103bab9 --- /dev/null +++ b/testsuite/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
|