diff options
author | Vladislav Zavialov <vlad.z.4096@gmail.com> | 2019-05-08 21:47:38 +0300 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-05-14 16:41:19 -0400 |
commit | c72c369bcd56c74b745d90ee8f6acd12b430c65c (patch) | |
tree | 618881a60ecfad2cf09b1789f7044a47891ee3ab | |
parent | 5cf8032e2fd2a2f35b8de9016c6e38e92c524394 (diff) | |
download | haskell-c72c369bcd56c74b745d90ee8f6acd12b430c65c.tar.gz |
Add a minimized regression test for #12928
-rw-r--r-- | testsuite/tests/typecheck/should_compile/T12928.hs | 17 | ||||
-rw-r--r-- | testsuite/tests/typecheck/should_compile/all.T | 1 |
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, ['']) |