Test Trac #8514
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 12 Nov 2013 15:29:37 +0000 (15:29 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 12 Nov 2013 15:29:37 +0000 (15:29 +0000)
testsuite/tests/typecheck/should_fail/T8514.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/T8514.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_fail/all.T

diff --git a/testsuite/tests/typecheck/should_fail/T8514.hs b/testsuite/tests/typecheck/should_fail/T8514.hs
new file mode 100644 (file)
index 0000000..f4361f8
--- /dev/null
@@ -0,0 +1,3 @@
+module T8514 where
+
+type T a = (a, Maybe)
diff --git a/testsuite/tests/typecheck/should_fail/T8514.stderr b/testsuite/tests/typecheck/should_fail/T8514.stderr
new file mode 100644 (file)
index 0000000..132e925
--- /dev/null
@@ -0,0 +1,7 @@
+
+T8514.hs:3:12:
+    Expecting one more argument to ‛Maybe’
+    The second argument of a tuple should have kind ‛*’,
+      but ‛Maybe’ has kind ‛* -> *’
+    In the type ‛(a, Maybe)’
+    In the type declaration for ‛T’
index 1d15999..f14bb5f 100644 (file)
@@ -323,3 +323,4 @@ test('T8306', normal, compile_fail, [''])
 test('T8392a', normal, compile_fail, [''])
 test('T8428', normal, compile_fail, [''])
 test('T8450', normal, compile_fail, [''])
+test('T8514', normal, compile_fail, [''])