diff options
-rw-r--r-- | testsuite/tests/polykinds/T16263.hs | 7 | ||||
-rw-r--r-- | testsuite/tests/polykinds/T16263.stderr | 2 | ||||
-rw-r--r-- | testsuite/tests/polykinds/all.T | 1 |
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, ['']) |