[commit: testsuite] master: Test Trac #8514 (286b45a)

git at git.haskell.org git at git.haskell.org
Tue Nov 12 15:30:12 UTC 2013


Repository : ssh://git@git.haskell.org/testsuite

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/286b45a1dce09eb7b057df5d137b629b3acc97d4/testsuite

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

commit 286b45a1dce09eb7b057df5d137b629b3acc97d4
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Nov 12 15:29:37 2013 +0000

    Test Trac #8514


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

286b45a1dce09eb7b057df5d137b629b3acc97d4
 tests/typecheck/should_fail/T8514.hs                       |    3 +++
 tests/typecheck/should_fail/{T7645.stderr => T8514.stderr} |    5 +++--
 tests/typecheck/should_fail/all.T                          |    1 +
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/typecheck/should_fail/T8514.hs b/tests/typecheck/should_fail/T8514.hs
new file mode 100644
index 0000000..f4361f8
--- /dev/null
+++ b/tests/typecheck/should_fail/T8514.hs
@@ -0,0 +1,3 @@
+module T8514 where
+
+type T a = (a, Maybe)
diff --git a/tests/typecheck/should_fail/T7645.stderr b/tests/typecheck/should_fail/T8514.stderr
similarity index 63%
copy from tests/typecheck/should_fail/T7645.stderr
copy to tests/typecheck/should_fail/T8514.stderr
index ae00e21..132e925 100644
--- a/tests/typecheck/should_fail/T7645.stderr
+++ b/tests/typecheck/should_fail/T8514.stderr
@@ -1,6 +1,7 @@
 
-T7645.hs:6:23:
+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 signature for ‛f’: f :: ((+) a (a :: *), Maybe)
+    In the type ‛(a, Maybe)’
+    In the type declaration for ‛T’
diff --git a/tests/typecheck/should_fail/all.T b/tests/typecheck/should_fail/all.T
index 1d15999..f14bb5f 100644
--- a/tests/typecheck/should_fail/all.T
+++ b/tests/typecheck/should_fail/all.T
@@ -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, [''])



More information about the ghc-commits mailing list