summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/tests/dependent/should_compile/T14880-2.hs13
-rw-r--r--testsuite/tests/dependent/should_compile/all.T1
2 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_compile/T14880-2.hs b/testsuite/tests/dependent/should_compile/T14880-2.hs
new file mode 100644
index 0000000000..e7057a3f00
--- /dev/null
+++ b/testsuite/tests/dependent/should_compile/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 (_ :: _) = ()
diff --git a/testsuite/tests/dependent/should_compile/all.T b/testsuite/tests/dependent/should_compile/all.T
index 566180710c..dca19b9afe 100644
--- a/testsuite/tests/dependent/should_compile/all.T
+++ b/testsuite/tests/dependent/should_compile/all.T
@@ -56,3 +56,4 @@ test('T15419', normal, compile, [''])
test('T14066h', normal, compile, [''])
test('T14904', expect_broken(14904), compile, [''])
test('T14880', normal, compile, [''])
+test('T14880-2', normal, compile, [''])