[commit: ghc] master: testsuite: Add another testcase for #11821 (6c54fa5)

git at git.haskell.org git at git.haskell.org
Thu Dec 1 00:11:21 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6c54fa512c4280e8047ba7891d42ba14bb88b149/ghc

>---------------------------------------------------------------

commit 6c54fa512c4280e8047ba7891d42ba14bb88b149
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Nov 30 19:09:11 2016 -0500

    testsuite: Add another testcase for #11821


>---------------------------------------------------------------

6c54fa512c4280e8047ba7891d42ba14bb88b149
 testsuite/tests/polykinds/T11821a.hs | 4 ++++
 testsuite/tests/polykinds/all.T      | 1 +
 2 files changed, 5 insertions(+)

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, [''])



More information about the ghc-commits mailing list