summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2019-03-06 10:17:12 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-03-06 21:54:17 -0500
commit25c3dd39f7d446f66b5c967be81f80cd7facb509 (patch)
treee775667d298602a2a0cdbf373e5fb3747f340169
parent07f378cee37338c5f2655b3a7e46dfef3f1c5cc1 (diff)
downloadhaskell-25c3dd39f7d446f66b5c967be81f80cd7facb509.tar.gz
Test Trac #16263
-rw-r--r--testsuite/tests/polykinds/T16263.hs7
-rw-r--r--testsuite/tests/polykinds/T16263.stderr2
-rw-r--r--testsuite/tests/polykinds/all.T1
3 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T16263.hs b/testsuite/tests/polykinds/T16263.hs
new file mode 100644
index 0000000000..4331c123b4
--- /dev/null
+++ b/testsuite/tests/polykinds/T16263.hs
@@ -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
index 0000000000..821a5fe307
--- /dev/null
+++ b/testsuite/tests/polykinds/T16263.stderr
@@ -0,0 +1,2 @@
+
+T16263.hs:7:1: error: Illegal constraint in a kind: Eq a => *
diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T
index 927319c1a7..5a90ebe723 100644
--- a/testsuite/tests/polykinds/all.T
+++ b/testsuite/tests/polykinds/all.T
@@ -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, [''])