[commit: ghc] master, wip/test-ci-images-commit: Add regression test for #16347 (4db9bdd)
git at git.haskell.org
git at git.haskell.org
Tue Mar 12 14:59:36 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branches: master,wip/test-ci-images-commit
Link : http://ghc.haskell.org/trac/ghc/changeset/4db9bdd91549b4eada5324cd7452e7e74ada28f5/ghc
>---------------------------------------------------------------
commit 4db9bdd91549b4eada5324cd7452e7e74ada28f5
Author: Ryan Scott <ryan.gl.scott at gmail.com>
Date: Mon Mar 11 09:21:12 2019 -0400
Add regression test for #16347
Commit 1f5cc9dc8aeeafa439d6d12c3c4565ada524b926 ended up
fixing #16347. Let's add a regression test to ensure that it stays
fixed.
>---------------------------------------------------------------
4db9bdd91549b4eada5324cd7452e7e74ada28f5
testsuite/tests/dependent/should_compile/T16347.hs | 8 ++++++++
testsuite/tests/dependent/should_compile/all.T | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/testsuite/tests/dependent/should_compile/T16347.hs b/testsuite/tests/dependent/should_compile/T16347.hs
new file mode 100644
index 0000000..8f4afba
--- /dev/null
+++ b/testsuite/tests/dependent/should_compile/T16347.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE GADTs #-}
+{-# LANGUAGE TypeInType #-}
+module T16347 where
+
+import Data.Kind
+
+data T f :: f Type -> Type where
+ MkT :: T f a
diff --git a/testsuite/tests/dependent/should_compile/all.T b/testsuite/tests/dependent/should_compile/all.T
index 4e162ae..60f8b76 100644
--- a/testsuite/tests/dependent/should_compile/all.T
+++ b/testsuite/tests/dependent/should_compile/all.T
@@ -69,4 +69,4 @@ test('T16326_Compile1', normal, compile, [''])
test('T16326_Compile2', normal, compile, [''])
test('T16391a', normal, compile, [''])
test('T16344b', normal, compile, [''])
-
+test('T16347', normal, compile, [''])
More information about the ghc-commits
mailing list