summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T19739c.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/polykinds/T19739c.hs')
-rw-r--r--testsuite/tests/polykinds/T19739c.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T19739c.hs b/testsuite/tests/polykinds/T19739c.hs
new file mode 100644
index 0000000000..331d1f74fd
--- /dev/null
+++ b/testsuite/tests/polykinds/T19739c.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE PolyKinds #-}
+{-# LANGUAGE RankNTypes #-}
+{-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE StandaloneKindSignatures #-}
+module Bug where
+
+import Data.Kind
+import Data.Proxy
+
+type T :: (forall (x :: Type) -> x) -> forall (a :: Type) -> Type
+newtype T f a = MkT (f (Type -> Type) a)