summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T17567.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T17567.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/T17567.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T17567.hs b/testsuite/tests/typecheck/should_fail/T17567.hs
new file mode 100644
index 0000000000..2ea82aae13
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T17567.hs
@@ -0,0 +1,15 @@
+{-# LANGUAGE PolyKinds, RankNTypes #-}
+
+module T17567 where
+
+import Data.Proxy
+
+type T = forall a. Proxy a
+
+p :: T
+p = Proxy
+
+x :: Proxy a -> a
+x = undefined
+
+y = x p