summaryrefslogtreecommitdiff
path: root/tests/examples/ghc86/BadTelescope2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/ghc86/BadTelescope2.hs')
-rw-r--r--tests/examples/ghc86/BadTelescope2.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/examples/ghc86/BadTelescope2.hs b/tests/examples/ghc86/BadTelescope2.hs
new file mode 100644
index 0000000..78d1a37
--- /dev/null
+++ b/tests/examples/ghc86/BadTelescope2.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE TypeInType, ExplicitForAll #-}
+
+module BadTelescope2 where
+
+import Data.Kind
+import Data.Proxy
+
+data SameKind :: k -> k -> Type
+
+foo :: forall a k (b :: k). SameKind a b
+foo = undefined
+
+bar :: forall a (c :: Proxy b) (d :: Proxy a). Proxy c -> SameKind b d
+bar = undefined