Test Trac #16263
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 6 Mar 2019 10:17:12 +0000 (10:17 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Thu, 7 Mar 2019 02:54:17 +0000 (21:54 -0500)
testsuite/tests/polykinds/T16263.hs [new file with mode: 0644]
testsuite/tests/polykinds/T16263.stderr [new file with mode: 0644]
testsuite/tests/polykinds/all.T

diff --git a/testsuite/tests/polykinds/T16263.hs b/testsuite/tests/polykinds/T16263.hs
new file mode 100644 (file)
index 0000000..4331c12
--- /dev/null
@@ -0,0 +1,7 @@
+{-# LANGUAGE GADTs, TypeInType, EmptyDataDecls #-}
+
+module T16263 where
+
+import Data.Kind
+
+data Q :: Eq a => Type where {}
diff --git a/testsuite/tests/polykinds/T16263.stderr b/testsuite/tests/polykinds/T16263.stderr
new file mode 100644 (file)
index 0000000..821a5fe
--- /dev/null
@@ -0,0 +1,2 @@
+
+T16263.hs:7:1: error: Illegal constraint in a kind: Eq a => *
index 927319c..5a90ebe 100644 (file)
@@ -210,3 +210,4 @@ test('KindVarOrder', normal, ghci_script, ['KindVarOrder.script'])
 test('T16221', normal, compile, [''])
 test('T16221a', normal, compile_fail, [''])
 test('T16342', normal, compile, [''])
+test('T16263', normal, compile_fail, [''])