[commit: ghc] master: Test #10432 (f141f41)
git at git.haskell.org
git at git.haskell.org
Wed Dec 23 12:11:39 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f141f416714acf9a88e89bcde49fe79d59395d00/ghc
>---------------------------------------------------------------
commit f141f416714acf9a88e89bcde49fe79d59395d00
Author: Jan Stolarek <jan.stolarek at p.lodz.pl>
Date: Wed Dec 23 09:35:36 2015 +0100
Test #10432
Summary: A regression test for #10432, which seems to already be fixed.
Test Plan: ./validate
Reviewers: simonpj, austin, bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1691
GHC Trac Issues: #10432
>---------------------------------------------------------------
f141f416714acf9a88e89bcde49fe79d59395d00
testsuite/tests/typecheck/should_compile/T10432.hs | 17 +++++++++++++++++
testsuite/tests/typecheck/should_compile/all.T | 1 +
2 files changed, 18 insertions(+)
diff --git a/testsuite/tests/typecheck/should_compile/T10432.hs b/testsuite/tests/typecheck/should_compile/T10432.hs
new file mode 100644
index 0000000..7a9821e
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T10432.hs
@@ -0,0 +1,17 @@
+{-# LANGUAGE ExistentialQuantification, PolyKinds,
+ DataKinds, RankNTypes, GADTs, TypeOperators #-}
+module T10432 where
+
+import Data.Type.Equality
+
+data WrappedType = forall a. WrapType a;
+
+matchReflK :: forall (a :: ka) (b :: kb) (r :: *).
+ ('WrapType a :~: 'WrapType b) -> (('WrapType a ~ 'WrapType b) => r) -> r;
+ matchReflK Refl r = r;
+
+matchReflK2 :: forall (a :: ka) (b :: kb) (r :: *).
+ ('WrapType a :~: 'WrapType b) -> r
+matchReflK2 x = let foo :: ('WrapType a ~ 'WrapType b) => r
+ foo = undefined
+ in undefined
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index ae2aa94..a969a4c 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -461,6 +461,7 @@ test('T10009', normal, compile, [''])
test('T10390', normal, compile, [''])
test('T8555', normal, compile, [''])
test('T8799', normal, compile, [''])
+test('T10432', normal, compile, [''])
test('T10423', normal, compile, [''])
test('T10489', unless(compiler_debugged(), skip), compile, [''])
test('T10348', normal, compile, [''])
More information about the ghc-commits
mailing list