summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@cs.brynmawr.edu>2017-08-15 14:52:53 -0400
committerBen Gamari <ben@smart-cactus.org>2017-09-14 13:08:46 -0400
commitc813d8c9776b2c57ec90ab29e1cc0b687fbb9c34 (patch)
treec2593f7f99ec9477873d4c056b4a6f7bf1c0775f /testsuite/tests/dependent
parent3b686879dd60250e084852c620864d7651f1a771 (diff)
downloadhaskell-c813d8c9776b2c57ec90ab29e1cc0b687fbb9c34.tar.gz
Regression test for #12742
Location: dependent/should_compile/T12742
Diffstat (limited to 'testsuite/tests/dependent')
-rw-r--r--testsuite/tests/dependent/should_compile/T12742.hs11
-rw-r--r--testsuite/tests/dependent/should_compile/all.T1
2 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_compile/T12742.hs b/testsuite/tests/dependent/should_compile/T12742.hs
new file mode 100644
index 0000000000..baa3e2c071
--- /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 a13589280c..774cdce625 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, [''])