[commit: ghc] master: testsuite: Add broken test for #13871 (12a3c39)
git at git.haskell.org
git at git.haskell.org
Tue Jun 27 17:34:51 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/12a3c394b12e5e07314895e6c419f4f4031ad3a9/ghc
>---------------------------------------------------------------
commit 12a3c394b12e5e07314895e6c419f4f4031ad3a9
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
>---------------------------------------------------------------
12a3c394b12e5e07314895e6c419f4f4031ad3a9
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 b267819..5c3b323 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -564,3 +564,4 @@ test('T13651', normal, compile, [''])
test('T13785', normal, compile, [''])
test('T13804', normal, compile, [''])
test('T13822', normal, compile, [''])
+test('T13871', expect_broken(13871), compile, [''])
More information about the ghc-commits
mailing list