summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/T13777.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/T13777.hs')
-rw-r--r--testsuite/tests/indexed-types/should_compile/T13777.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/T13777.hs b/testsuite/tests/indexed-types/should_compile/T13777.hs
new file mode 100644
index 0000000000..7e8b660c4e
--- /dev/null
+++ b/testsuite/tests/indexed-types/should_compile/T13777.hs
@@ -0,0 +1,16 @@
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE RankNTypes #-}
+{-# LANGUAGE TypeInType #-}
+module T13777 where
+
+import Data.Kind
+import Data.Proxy
+
+data S :: forall k. Proxy k -> Type where
+ MkS :: S ('Proxy :: Proxy Maybe)
+
+data T (a :: b) :: forall c (d :: Type) e.
+ (forall f. Proxy f) -> Proxy c -> Proxy d -> Proxy e
+ -> Type where
+
+ -- NB: This was originally a failing test, but now that we have #15273, it works!