summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_fail/T14880-2.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/dependent/should_fail/T14880-2.hs')
-rw-r--r--testsuite/tests/dependent/should_fail/T14880-2.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_fail/T14880-2.hs b/testsuite/tests/dependent/should_fail/T14880-2.hs
new file mode 100644
index 0000000000..e7057a3f00
--- /dev/null
+++ b/testsuite/tests/dependent/should_fail/T14880-2.hs
@@ -0,0 +1,13 @@
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE TypeInType #-}
+{-# LANGUAGE PartialTypeSignatures #-}
+module Bug where
+
+import Data.Kind
+import Data.Proxy
+
+data Foo (x :: Type) :: forall (a :: x). Proxy a -> Type
+
+quux :: forall arg. Proxy (Foo arg) -> ()
+quux (_ :: _) = ()