Test #7481, which had already been fixed.
authorRichard Eisenberg <eir@cis.upenn.edu>
Sun, 9 Feb 2014 16:34:19 +0000 (11:34 -0500)
committerRichard Eisenberg <eir@cis.upenn.edu>
Sun, 9 Feb 2014 16:34:19 +0000 (11:34 -0500)
testsuite/tests/polykinds/T7481.hs [new file with mode: 0644]
testsuite/tests/polykinds/T7481.stderr [new file with mode: 0644]
testsuite/tests/polykinds/all.T

diff --git a/testsuite/tests/polykinds/T7481.hs b/testsuite/tests/polykinds/T7481.hs
new file mode 100644 (file)
index 0000000..cb64d39
--- /dev/null
@@ -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 (file)
index 0000000..bd2d679
--- /dev/null
@@ -0,0 +1,4 @@
+
+T7481.hs:12:13:
+    ‛D’ of kind ‛* -> *’ is not promotable
+    In the kind ‛D * -> *’
index 34253fd..005c47a 100644 (file)
@@ -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