diff options
| author | Vladislav Zavialov <vlad.z.4096@gmail.com> | 2016-12-06 18:48:27 -0500 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2016-12-06 18:48:28 -0500 |
| commit | 41ec722d71db0eadeddd582a23aab7347349185f (patch) | |
| tree | 8cb13f496175885247cbb55a991b082d455085a0 | |
| parent | b7e88ee0d87f41cf1d8aba62aa44d5bf0a7404ad (diff) | |
| download | haskell-41ec722d71db0eadeddd582a23aab7347349185f.tar.gz | |
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
| -rw-r--r-- | testsuite/tests/typecheck/should_compile/T12919.hs | 22 | ||||
| -rw-r--r-- | testsuite/tests/typecheck/should_compile/all.T | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T12919.hs b/testsuite/tests/typecheck/should_compile/T12919.hs new file mode 100644 index 0000000000..1f77c1c8de --- /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 e2d65bdb19..088c6fa5d3 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, ['']) |
