[commit: ghc] master: Add regression test for #14209 (dafa012)

git at git.haskell.org git at git.haskell.org
Wed Sep 13 13:44:36 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/dafa0128950a6b18d79818881b3eeb6dc5c855b4/ghc

>---------------------------------------------------------------

commit dafa0128950a6b18d79818881b3eeb6dc5c855b4
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date:   Wed Sep 13 09:37:24 2017 -0400

    Add regression test for #14209
    
    Summary:
    Commit 0257dacf228024d0cc6ba247c707130637a25580
    (`Refactor bindHsQTyVars and friends`) ended up fixing #14209. Let's
    add a regression test so that it stays fixed.
    
    Test Plan: make test TEST=T14209
    
    Reviewers: austin, bgamari
    
    Subscribers: rwbarton, thomie
    
    GHC Trac Issues: #14209
    
    Differential Revision: https://phabricator.haskell.org/D3936


>---------------------------------------------------------------

dafa0128950a6b18d79818881b3eeb6dc5c855b4
 testsuite/tests/polykinds/T14209.hs | 5 +++++
 testsuite/tests/polykinds/all.T     | 1 +
 2 files changed, 6 insertions(+)

diff --git a/testsuite/tests/polykinds/T14209.hs b/testsuite/tests/polykinds/T14209.hs
new file mode 100644
index 0000000..3e0181c
--- /dev/null
+++ b/testsuite/tests/polykinds/T14209.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE TypeInType #-}
+module T14209 where
+
+data MyProxy k (a :: k) = MyProxy
+data Foo (z :: MyProxy k (a :: k))
diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T
index 864e204..c01b73c 100644
--- a/testsuite/tests/polykinds/all.T
+++ b/testsuite/tests/polykinds/all.T
@@ -167,3 +167,4 @@ test('T13985', normal, compile_fail, [''])
 test('T14110', normal, compile_fail, [''])
 test('BadKindVar', normal, compile_fail, [''])
 test('T13738', normal, compile_fail, [''])
+test('T14209', normal, compile, [''])



More information about the ghc-commits mailing list