summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T16247.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/polykinds/T16247.hs')
-rw-r--r--testsuite/tests/polykinds/T16247.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T16247.hs b/testsuite/tests/polykinds/T16247.hs
new file mode 100644
index 0000000000..617f3c4aca
--- /dev/null
+++ b/testsuite/tests/polykinds/T16247.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE TypeInType #-}
+module Bug where
+
+import Data.Kind
+
+data SameKind :: forall k. k -> k -> Type
+data Foo :: forall a k (b :: k). SameKind a b -> Type where
+ MkFoo :: Foo sameKind