summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2019-05-08 21:47:38 +0300
committerVladislav Zavialov <vlad.z.4096@gmail.com>2019-05-09 10:27:08 +0300
commit40d5291bfea5d96435b7c3514165c2247263e427 (patch)
treeda79fcdd801a3883f7b91fa222aeddda9a4f4fde
parent396e01b472bba36530e7eb065b82d311f0da7880 (diff)
downloadhaskell-wip/t12928.tar.gz
Add a minimized regression test for #12928wip/t12928
-rw-r--r--testsuite/tests/typecheck/should_compile/T12928.hs17
-rw-r--r--testsuite/tests/typecheck/should_compile/all.T1
2 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T12928.hs b/testsuite/tests/typecheck/should_compile/T12928.hs
new file mode 100644
index 0000000000..55a7de7273
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T12928.hs
@@ -0,0 +1,17 @@
+{-# LANGUAGE DataKinds, PolyKinds #-}
+
+module T12928 where
+
+data P (a::k) = MkP
+
+data FffSym0 (l :: P a)
+
+-- Make sure that the kind of 'k' is not defaulted:
+--
+-- data FffSym0 (l :: P (a :: Type))
+--
+-- We expect kind polymorphism:
+--
+-- data FffSym0 (l :: P (a :: k))
+--
+type Inst (a :: P Either) (b :: P Maybe) = (FffSym0 a, FffSym0 b)
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index f7d92b6210..42f0480fd0 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -673,3 +673,4 @@ test('T13951', normal, compile, [''])
test('T16411', normal, compile, [''])
test('T16609', normal, compile, [''])
test('T505', normal, compile, [''])
+test('T12928', normal, compile, [''])