diff options
-rw-r--r-- | testsuite/tests/polykinds/T11821a.hs | 4 | ||||
-rw-r--r-- | testsuite/tests/polykinds/all.T | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T11821a.hs b/testsuite/tests/polykinds/T11821a.hs new file mode 100644 index 0000000000..da96fe2c56 --- /dev/null +++ b/testsuite/tests/polykinds/T11821a.hs @@ -0,0 +1,4 @@ +{-# LANGUAGE GADTs, TypeInType, ConstraintKinds #-} +module T11821a where +import Data.Proxy +type SameKind (a :: k1) (b :: k2) = ('Proxy :: Proxy k1) ~ ('Proxy :: Proxy k2) diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T index db0693230d..c5ec8ace85 100644 --- a/testsuite/tests/polykinds/all.T +++ b/testsuite/tests/polykinds/all.T @@ -147,6 +147,7 @@ test('T11648', normal, compile, ['']) test('T11648b', normal, compile_fail, ['']) test('KindVType', normal, compile_fail, ['']) test('T11821', normal, compile, ['']) +test('T11821a', normal, compile, ['']) test('T11640', normal, compile, ['']) test('T11554', normal, compile_fail, ['']) test('T12055', normal, compile, ['']) |