diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2018-12-06 14:21:33 +0000 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2018-12-06 14:23:44 +0000 |
commit | 91c4e71f633ebc81671fbfc752fc35b84883e744 (patch) | |
tree | ef76710e96134b7b45ff387a9cc2ae7ea62c172b | |
parent | 5f1d949ab9e09b8d95319633854b7959df06eb58 (diff) | |
download | haskell-91c4e71f633ebc81671fbfc752fc35b84883e744.tar.gz |
Tests Trac #14847
-rw-r--r-- | testsuite/tests/polykinds/T14847.hs | 17 | ||||
-rw-r--r-- | testsuite/tests/polykinds/all.T | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T14847.hs b/testsuite/tests/polykinds/T14847.hs new file mode 100644 index 0000000000..3474fe069c --- /dev/null +++ b/testsuite/tests/polykinds/T14847.hs @@ -0,0 +1,17 @@ +{-# LANGUAGE GADTs #-} +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE TypeInType #-} +module T14847 where + +data Proxy k (a :: k) = MkProxy +data Proxy2 k a = MkP (Proxy k a) + +data Proxy2' k a where + MkP' :: Proxy k a -> Proxy2' k a + +data T a where + T :: Int -> T Bool + +type family F a where + F Int = True + F _ = False diff --git a/testsuite/tests/polykinds/all.T b/testsuite/tests/polykinds/all.T index 8be2c59bf0..18eb8a5d7d 100644 --- a/testsuite/tests/polykinds/all.T +++ b/testsuite/tests/polykinds/all.T @@ -203,3 +203,4 @@ test('T15881a', normal, compile_fail, ['']) test('T15817', normal, compile, ['']) test('T15874', normal, compile, ['']) test('T14887a', normal, compile, ['']) +test('T14847', normal, compile, ['']) |