testsuite: Add (broken) test for #15473
authorBen Gamari <ben@smart-cactus.org>
Tue, 7 Aug 2018 17:59:31 +0000 (13:59 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Aug 2018 19:48:58 +0000 (15:48 -0400)
(cherry picked from commit 5487f305d9dea298f0822082389d8a0225956c55)

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

diff --git a/testsuite/tests/typecheck/should_compile/T15473.hs b/testsuite/tests/typecheck/should_compile/T15473.hs
new file mode 100644 (file)
index 0000000..d6bf57b
--- /dev/null
@@ -0,0 +1,12 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE PolyKinds #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeOperators #-}
+-- {-# LANGUAGE UndecidableInstances #-}
+module Bug where
+
+type family Undefined :: k where {}
+
+type family LetInterleave xs t ts is (a_ahkO :: [a]) (a_ahkP :: [[a]]) :: [[a]] where
+  LetInterleave xs t ts is y z = Undefined y z
+
index a7b283d..6e0398d 100644 (file)
@@ -646,4 +646,4 @@ test('T15428', normal, compile, [''])
 test('T15431', normal, compile, [''])
 test('T15431a', normal, compile, [''])
 test('T15412', normal, compile, [''])
-test('T15499', normal, compile, [''])
+test('T15473', expect_broken(15473), compile, [''])