diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2019-03-11 09:21:12 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-03-12 09:25:39 -0400 |
commit | 4db9bdd91549b4eada5324cd7452e7e74ada28f5 (patch) | |
tree | 4e6ad2ac73755317b97bc0fb5f02ced690f39daf /testsuite/tests | |
parent | 62db9295ba79d5229585fb08530fff944179c609 (diff) | |
download | haskell-4db9bdd91549b4eada5324cd7452e7e74ada28f5.tar.gz |
Add regression test for #16347
Commit 1f5cc9dc8aeeafa439d6d12c3c4565ada524b926 ended up
fixing #16347. Let's add a regression test to ensure that it stays
fixed.
Diffstat (limited to 'testsuite/tests')
-rw-r--r-- | testsuite/tests/dependent/should_compile/T16347.hs | 8 | ||||
-rw-r--r-- | testsuite/tests/dependent/should_compile/all.T | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/testsuite/tests/dependent/should_compile/T16347.hs b/testsuite/tests/dependent/should_compile/T16347.hs new file mode 100644 index 0000000000..8f4afbace0 --- /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 4e162aed69..60f8b7609d 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, ['']) |