[commit: ghc] wip/rae: Regression test for #12742 (0991b49)

git at git.haskell.org git at git.haskell.org
Tue Aug 22 18:39:19 UTC 2017


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

On branch  : wip/rae
Link       : http://ghc.haskell.org/trac/ghc/changeset/0991b49b10a79cc9401390dcdfec03afc261d807/ghc

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

commit 0991b49b10a79cc9401390dcdfec03afc261d807
Author: Richard Eisenberg <rae at cs.brynmawr.edu>
Date:   Tue Aug 15 14:52:53 2017 -0400

    Regression test for #12742
    
    Location: dependent/should_compile/T12742


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

0991b49b10a79cc9401390dcdfec03afc261d807
 testsuite/tests/dependent/should_compile/T12742.hs | 11 +++++++++++
 testsuite/tests/dependent/should_compile/all.T     |  1 +
 2 files changed, 12 insertions(+)

diff --git a/testsuite/tests/dependent/should_compile/T12742.hs b/testsuite/tests/dependent/should_compile/T12742.hs
new file mode 100644
index 0000000..baa3e2c
--- /dev/null
+++ b/testsuite/tests/dependent/should_compile/T12742.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE TypeInType, RankNTypes, TypeFamilies #-}
+
+module T12742 where
+
+import Data.Kind
+
+type family F :: forall k2. (k1, k2)
+
+data T :: (forall k2. (Bool, k2)) -> Type
+
+type S = T F
diff --git a/testsuite/tests/dependent/should_compile/all.T b/testsuite/tests/dependent/should_compile/all.T
index a135892..774cdce 100644
--- a/testsuite/tests/dependent/should_compile/all.T
+++ b/testsuite/tests/dependent/should_compile/all.T
@@ -26,3 +26,4 @@ test('T12442', normal, compile, [''])
 test('T13538', normal, compile, [''])
 test('T12176', normal, compile, [''])
 test('T14038', expect_broken(14038), compile, [''])
+test('T12742', normal, compile, [''])



More information about the ghc-commits mailing list