[commit: ghc] master: testsuite: Add (broken) test for #15473 (a533a09)

git at git.haskell.org git at git.haskell.org
Tue Aug 7 19:55:55 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a533a09231450b9ce0c94d2990d77749fc744baa/ghc

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

commit a533a09231450b9ce0c94d2990d77749fc744baa
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Aug 7 13:59:31 2018 -0400

    testsuite: Add (broken) test for #15473


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

a533a09231450b9ce0c94d2990d77749fc744baa
 testsuite/tests/typecheck/should_compile/T15473.hs | 12 ++++++++++++
 testsuite/tests/typecheck/should_compile/all.T     |  1 +
 2 files changed, 13 insertions(+)

diff --git a/testsuite/tests/typecheck/should_compile/T15473.hs b/testsuite/tests/typecheck/should_compile/T15473.hs
new file mode 100644
index 0000000..d6bf57b
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T15473.hs
@@ -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
+
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 378bdfa..c36eaea 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -647,3 +647,4 @@ test('T15431a', normal, compile, [''])
 test('T15428', normal, compile, [''])
 test('T15412', normal, compile, [''])
 test('T15141', normal, compile, [''])
+test('T15473', expect_broken(15473), compile, [''])



More information about the ghc-commits mailing list