diff options
| author | Ryan Scott <ryan.gl.scott@gmail.com> | 2018-10-29 12:59:46 -0400 |
|---|---|---|
| committer | Ryan Scott <ryan.gl.scott@gmail.com> | 2018-10-29 12:59:56 -0400 |
| commit | 331081b03f67c94b908136339aebf36d07d45c21 (patch) | |
| tree | 99e94ab6d40b4579421c385e444e4bb0572f3dbd | |
| parent | 09740d50e74ac93a0309544a62e9efc52b27adff (diff) | |
| download | haskell-331081b03f67c94b908136339aebf36d07d45c21.tar.gz | |
Add a test case for #15829
This happened to get fixed as a consequence of commit
5e45ad10ffca1ad175b10f6ef3327e1ed8ba25f3. This adds a test case
to ensure that it stays fixed.
| -rw-r--r-- | testsuite/tests/dependent/should_compile/T15829.hs | 9 | ||||
| -rw-r--r-- | testsuite/tests/dependent/should_compile/all.T | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/dependent/should_compile/T15829.hs b/testsuite/tests/dependent/should_compile/T15829.hs new file mode 100644 index 0000000000..ec6f5d135f --- /dev/null +++ b/testsuite/tests/dependent/should_compile/T15829.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE PolyKinds #-} +module T15829 where + +import Data.Kind + +data A :: Type -> Type +data B a :: A a -> Type +type C a = B a diff --git a/testsuite/tests/dependent/should_compile/all.T b/testsuite/tests/dependent/should_compile/all.T index 341a44c8f3..632ef4018c 100644 --- a/testsuite/tests/dependent/should_compile/all.T +++ b/testsuite/tests/dependent/should_compile/all.T @@ -64,3 +64,4 @@ test('T15743e', normal, compile, ['-ddump-types -fprint-explicit-foralls']) test('T15076', normal, compile, ['']) test('T15076b', normal, compile, ['']) test('T15076c', normal, compile, ['']) +test('T15829', normal, compile, ['']) |
