[commit: ghc] ghc-7.8: Test #7481, which had already been fixed. (c6c3fb6)
git at git.haskell.org
git at git.haskell.org
Mon Feb 17 09:15:21 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.8
Link : http://ghc.haskell.org/trac/ghc/changeset/c6c3fb6cb9683644c5e780304f9290d86e7db9b5/ghc
>---------------------------------------------------------------
commit c6c3fb6cb9683644c5e780304f9290d86e7db9b5
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Sun Feb 9 11:34:19 2014 -0500
Test #7481, which had already been fixed.
(cherry picked from commit d1dff94c9a82ffeff0bf92d0f90231a639ade59c)
>---------------------------------------------------------------
c6c3fb6cb9683644c5e780304f9290d86e7db9b5
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