[commit: ghc] master: Test #7481, which had already been fixed. (d1dff94)

git at git.haskell.org git at git.haskell.org
Mon Feb 10 01:39:22 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d1dff94c9a82ffeff0bf92d0f90231a639ade59c/ghc

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

commit d1dff94c9a82ffeff0bf92d0f90231a639ade59c
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Sun Feb 9 11:34:19 2014 -0500

    Test #7481, which had already been fixed.


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

d1dff94c9a82ffeff0bf92d0f90231a639ade59c
 testsuite/tests/polykinds/T7481.hs     |   12 ++++++++++++
 testsuite/tests/polykinds/T7481.stderr |    4 ++++
 testsuite/tests/polykinds/all.T        |    1 +
 3 files changed, 17 insertions(+)

diff --git a/testsuite/tests/polykinds/T7481.hs b/testsuite/tests/polykinds/T7481.hs
new file mode 100644
index 0000000..cb64d39
--- /dev/null
+++ b/testsuite/tests/polykinds/T7481.hs
@@ -0,0 +1,12 @@
+ {-# LANGUAGE DataKinds, PolyKinds, RankNTypes, GADTs #-}
+
+module T7481 where
+
+import Data.Proxy
+
+data D a where
+  D1 :: a -> D a
+  D2 :: (a~Int) => D a
+  D3 :: forall (a::k) b. Proxy a -> D b
+
+data Foo :: D * -> *
\ No newline at end of file
diff --git a/testsuite/tests/polykinds/T7481.stderr b/testsuite/tests/polykinds/T7481.stderr
new file mode 100644
index 0000000..bd2d679
--- /dev/null
+++ b/testsuite/tests/polykinds/T7481.stderr
@@ -0,0 +1,4 @@
+
+T7481.hs:12:13:
+    ‛D’ of kind ‛* -> *’ is not promotable
+    In the kind ‛D * -> *’
diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T
index 34253fd..005c47a 100644
--- a/testsuite/tests/polykinds/all.T
+++ b/testsuite/tests/polykinds/all.T
@@ -97,3 +97,4 @@ test('T8534', normal, compile, [''])
 test('T8566', normal, compile_fail,[''])
 test('T8616', normal, compile_fail,[''])
 test('T8566a', expect_broken(8566), compile,[''])
+test('T7481', normal, compile_fail,[''])
\ No newline at end of file



More information about the ghc-commits mailing list