summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_fail/T15264.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dependent/should_fail/T15264.hs')
-rw-r--r--testsuite/tests/dependent/should_fail/T15264.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_fail/T15264.hs b/testsuite/tests/dependent/should_fail/T15264.hs
new file mode 100644
index 0000000000..394c53a013
--- /dev/null
+++ b/testsuite/tests/dependent/should_fail/T15264.hs
@@ -0,0 +1,14 @@
+{-# LANGUAGE ExplicitForAll, PolyKinds #-}
+
+module T15264 where
+
+import Data.Proxy
+
+bad1 :: forall (a :: k). Proxy a -> ()
+bad1 _ = ()
+
+bad2 :: forall (a :: k1) (b :: k2). Proxy a -> ()
+bad2 _ = ()
+
+good :: forall k (a :: k). Proxy a -> ()
+good _ = ()