summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Dammers <tdammers@gmail.com>2018-09-14 13:48:20 +0200
committerTobias Dammers <tdammers@gmail.com>2018-09-17 22:37:08 +0200
commita71f02265c81c22965999ec2593cf4bec81301ff (patch)
tree7f8c795818a15d55290cedce080f0b8c0ddea069
parent62ca12fb5e097d123d916495f1511af98cba173d (diff)
downloadhaskell-a71f02265c81c22965999ec2593cf4bec81301ff.tar.gz
Add test for #14880wip/T14880-2-step3
-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, [''])