Regression test for #12742
authorRichard Eisenberg <rae@cs.brynmawr.edu>
Tue, 15 Aug 2017 18:52:53 +0000 (14:52 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 14 Sep 2017 17:08:46 +0000 (13:08 -0400)
Location: dependent/should_compile/T12742

testsuite/tests/dependent/should_compile/T12742.hs [new file with mode: 0644]
testsuite/tests/dependent/should_compile/all.T

diff --git a/testsuite/tests/dependent/should_compile/T12742.hs b/testsuite/tests/dependent/should_compile/T12742.hs
new file mode 100644 (file)
index 0000000..baa3e2c
--- /dev/null
@@ -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
index a135892..774cdce 100644 (file)
@@ -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, [''])