[commit: ghc] wip/rae: Regression test for #12742 (ac03a73)
git at git.haskell.org
git at git.haskell.org
Wed Aug 16 19:18:39 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/rae
Link : http://ghc.haskell.org/trac/ghc/changeset/ac03a737058e8e9d8b08dfc504f926623d9f837d/ghc
>---------------------------------------------------------------
commit ac03a737058e8e9d8b08dfc504f926623d9f837d
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
>---------------------------------------------------------------
ac03a737058e8e9d8b08dfc504f926623d9f837d
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