[commit: ghc] ghc-8.2: testsuite: Add broken test for #13871 (8dc21c7)
git at git.haskell.org
git at git.haskell.org
Thu Jun 29 17:54:13 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.2
Link : http://ghc.haskell.org/trac/ghc/changeset/8dc21c7591bffa1db3ae8c74ce321430900e2d06/ghc
>---------------------------------------------------------------
commit 8dc21c7591bffa1db3ae8c74ce321430900e2d06
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Tue Jun 27 10:29:23 2017 -0400
testsuite: Add broken test for #13871
Test Plan: Validate
Reviewers: austin
Subscribers: rwbarton, thomie, RyanGlScott
GHC Trac Issues: #13871
Differential Revision: https://phabricator.haskell.org/D3671
(cherry picked from commit 12a3c394b12e5e07314895e6c419f4f4031ad3a9)
>---------------------------------------------------------------
8dc21c7591bffa1db3ae8c74ce321430900e2d06
testsuite/tests/typecheck/should_compile/T13871.hs | 15 +++++++++++++++
testsuite/tests/typecheck/should_compile/all.T | 1 +
2 files changed, 16 insertions(+)
diff --git a/testsuite/tests/typecheck/should_compile/T13871.hs b/testsuite/tests/typecheck/should_compile/T13871.hs
new file mode 100644
index 0000000..319d949
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T13871.hs
@@ -0,0 +1,15 @@
+{-# LANGUAGE ConstraintKinds #-}
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeInType #-}
+{-# LANGUAGE TypeOperators #-}
+module Foo where
+
+import Data.Kind
+
+data Foo (a :: Type) (b :: Type) where
+ MkFoo :: (a ~ Int, b ~ Char) => Foo a b
+
+data family Sing (a :: k)
+data SFoo (z :: Foo a b) where
+ SMkFoo :: SFoo MkFoo
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 2a6b109..1da16fc 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -554,3 +554,4 @@ test('T13603', normal, compile, [''])
test('T13333', normal, compile, [''])
test('T13585', [extra_files(['T13585.hs', 'T13585a.hs', 'T13585b.hs'])], run_command, ['$MAKE -s --no-print-directory T13585'])
test('T13804', normal, compile, [''])
+test('T13871', expect_broken(13871), compile, [''])
More information about the ghc-commits
mailing list