[commit: ghc] master: testsuite: Add regression test for #12381 (a4f2b76)
git at git.haskell.org
git at git.haskell.org
Wed Jul 20 15:28:51 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/a4f2b76661fa2056172b27b9883df1f488b7a0dc/ghc
>---------------------------------------------------------------
commit a4f2b76661fa2056172b27b9883df1f488b7a0dc
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Wed Jul 20 17:21:35 2016 +0200
testsuite: Add regression test for #12381
Test Plan: Validate
Reviewers: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2408
GHC Trac Issues: #12381, #11348
>---------------------------------------------------------------
a4f2b76661fa2056172b27b9883df1f488b7a0dc
testsuite/tests/typecheck/should_compile/T12381.hs | 10 ++++++++++
testsuite/tests/typecheck/should_compile/all.T | 1 +
2 files changed, 11 insertions(+)
diff --git a/testsuite/tests/typecheck/should_compile/T12381.hs b/testsuite/tests/typecheck/should_compile/T12381.hs
new file mode 100644
index 0000000..9d4d731
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T12381.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE TypeInType, TypeFamilies #-}
+module Kinds where
+
+import GHC.Types
+
+type family G (a :: Type) :: Type
+type instance G Int = Bool
+
+type family F (a :: Type) :: G a
+type instance F Int = True
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 7333ffb..995fa2a 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -531,3 +531,4 @@ test('T12067', extra_clean(['T12067a.hi', 'T12067a.o']),
multimod_compile, ['T12067', '-v0'])
test('T12185', normal, compile, [''])
test('T12133', normal, compile, [''])
+test('T12381', normal, compile, [''])
More information about the ghc-commits
mailing list