[commit: ghc] master: Test Trac #12919 (41ec722d)
git at git.haskell.org
git at git.haskell.org
Wed Dec 7 00:22:30 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/41ec722d71db0eadeddd582a23aab7347349185f/ghc
>---------------------------------------------------------------
commit 41ec722d71db0eadeddd582a23aab7347349185f
Author: Vladislav Zavialov <vlad.z.4096 at gmail.com>
Date: Tue Dec 6 18:48:27 2016 -0500
Test Trac #12919
Test Plan: make test TEST=T12919
Reviewers: bgamari, austin
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2788
GHC Trac Issues: #12919
>---------------------------------------------------------------
41ec722d71db0eadeddd582a23aab7347349185f
testsuite/tests/typecheck/should_compile/T12919.hs | 22 ++++++++++++++++++++++
testsuite/tests/typecheck/should_compile/all.T | 1 +
2 files changed, 23 insertions(+)
diff --git a/testsuite/tests/typecheck/should_compile/T12919.hs b/testsuite/tests/typecheck/should_compile/T12919.hs
new file mode 100644
index 0000000..1f77c1c
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T12919.hs
@@ -0,0 +1,22 @@
+{-# LANGUAGE TypeInType, TypeFamilies, GADTs, ConstraintKinds #-}
+
+module T12919 where
+
+import Data.Kind
+
+data N = Z
+
+data V :: N -> Type where
+ VZ :: V Z
+
+type family VC (n :: N) :: Type where
+ VC Z = Type
+
+type family VF (xs :: V n) (f :: VC n) :: Type where
+ VF VZ f = f
+
+data Dict c where
+ Dict :: c => Dict c
+
+prop :: xs ~ VZ => Dict (VF xs f ~ f)
+prop = Dict
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index e2d65bd..088c6fa 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -556,3 +556,4 @@ test('T12734a', normal, compile_fail, [''])
test('T12763', normal, compile, [''])
test('T12797', normal, compile, [''])
test('T12925', normal, compile, [''])
+test('T12919', expect_broken(12919), compile, [''])
More information about the ghc-commits
mailing list