[commit: ghc] wip/dmd-arity: Test Trac #16263 (25c3dd3)
git at git.haskell.org
git at git.haskell.org
Thu Mar 7 17:41:21 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/dmd-arity
Link : http://ghc.haskell.org/trac/ghc/changeset/25c3dd39f7d446f66b5c967be81f80cd7facb509/ghc
>---------------------------------------------------------------
commit 25c3dd39f7d446f66b5c967be81f80cd7facb509
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Wed Mar 6 10:17:12 2019 +0000
Test Trac #16263
>---------------------------------------------------------------
25c3dd39f7d446f66b5c967be81f80cd7facb509
testsuite/tests/polykinds/T16263.hs | 7 +++++++
testsuite/tests/polykinds/T16263.stderr | 2 ++
testsuite/tests/polykinds/all.T | 1 +
3 files changed, 10 insertions(+)
diff --git a/testsuite/tests/polykinds/T16263.hs b/testsuite/tests/polykinds/T16263.hs
new file mode 100644
index 0000000..4331c12
--- /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 0000000..821a5fe
--- /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 927319c..5a90ebe 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, [''])
More information about the ghc-commits
mailing list