summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T16245.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/polykinds/T16245.hs')
-rw-r--r--testsuite/tests/polykinds/T16245.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T16245.hs b/testsuite/tests/polykinds/T16245.hs
new file mode 100644
index 0000000000..8fcd38cb77
--- /dev/null
+++ b/testsuite/tests/polykinds/T16245.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE ConstraintKinds #-}
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE PolyKinds #-}
+{-# LANGUAGE QuantifiedConstraints #-}
+module T16245 where
+
+import Data.Kind
+
+type Const a b = a
+type SameKind (a :: k) (b :: k) = (() :: Constraint)
+class (forall (b :: k). SameKind a b) => C (k :: Const Type a)