testsuite: Add broken test for #13871
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 27 Jun 2017 14:29:23 +0000 (10:29 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 27 Jun 2017 16:55:06 +0000 (12:55 -0400)
Test Plan: Validate

Reviewers: austin

Subscribers: rwbarton, thomie, RyanGlScott

GHC Trac Issues: #13871

Differential Revision: https://phabricator.haskell.org/D3671

testsuite/tests/typecheck/should_compile/T13871.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T

diff --git a/testsuite/tests/typecheck/should_compile/T13871.hs b/testsuite/tests/typecheck/should_compile/T13871.hs
new file mode 100644 (file)
index 0000000..319d949
--- /dev/null
@@ -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
index b267819..5c3b323 100644 (file)
@@ -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, [''])