Test Trac #7410
authorSimon Peyton Jones <simonpj@microsoft.com>
Sun, 25 Nov 2012 12:40:15 +0000 (12:40 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Sun, 25 Nov 2012 12:40:15 +0000 (12:40 +0000)
testsuite/tests/typecheck/should_fail/T7410.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T7410.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T

diff --git a/testsuite/tests/typecheck/should_fail/T7410.hs b/testsuite/tests/typecheck/should_fail/T7410.hs
new file mode 100644 (file)
index 0000000..e166261
--- /dev/null
@@ -0,0 +1,4 @@
+module T7410 where
+
+foo :: (Either Int, Int)
+foo = foo
diff --git a/testsuite/tests/typecheck/should_fail/T7410.stderr b/testsuite/tests/typecheck/should_fail/T7410.stderr
new file mode 100644 (file)
index 0000000..8052651
--- /dev/null
@@ -0,0 +1,6 @@
+
+T7410.hs:3:9:
+    Expecting one more argument to `Either Int'
+    The first argument of a tuple should have kind `*',
+      but `Either Int' has kind `* -> *'
+    In the type signature for `foo': foo :: (Either Int, Int)
index 624dd5c..7187d90 100644 (file)
@@ -287,3 +287,4 @@ test('T7368', normal, compile_fail, [''])
 test('T7264', normal, compile_fail, [''])
 test('T6069', normal, compile_fail, [''])
 test('T7220', normal, compile_fail, [''])
+test('T7410', normal, compile_fail, [''])