summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-12-01 00:09:11 (GMT)
committerBen Gamari <ben@smart-cactus.org>2016-12-01 00:11:07 (GMT)
commit6c54fa512c4280e8047ba7891d42ba14bb88b149 (patch)
tree75a71cda46d7d03bb2a27507e848e222f8cc6cf9
parentc2a2911fe6c9047bc078bb0b370c6a90454cde55 (diff)
downloadghc-6c54fa512c4280e8047ba7891d42ba14bb88b149.zip
ghc-6c54fa512c4280e8047ba7891d42ba14bb88b149.tar.gz
ghc-6c54fa512c4280e8047ba7891d42ba14bb88b149.tar.bz2
testsuite: Add another testcase for #11821
-rw-r--r--testsuite/tests/polykinds/T11821a.hs4
-rw-r--r--testsuite/tests/polykinds/all.T1
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 0000000..da96fe2
--- /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 db06932..c5ec8ac 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, [''])