diff options
| author | Simon Peyton Jones <simonpj@microsoft.com> | 2017-03-28 08:44:11 +0100 |
|---|---|---|
| committer | Simon Peyton Jones <simonpj@microsoft.com> | 2017-03-28 08:44:11 +0100 |
| commit | eb6ccb7cd8751cd027ee9913e47f1371bfa62289 (patch) | |
| tree | 891ca85aa432526d44d47ce25ef675262315209e | |
| parent | b5c81203d047293f54c4e89ac70d505197968cb3 (diff) | |
| download | haskell-eb6ccb7cd8751cd027ee9913e47f1371bfa62289.tar.gz | |
Test Trac #13490
| -rw-r--r-- | testsuite/tests/typecheck/should_compile/T13490.hs | 12 | ||||
| -rw-r--r-- | testsuite/tests/typecheck/should_compile/all.T | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T13490.hs b/testsuite/tests/typecheck/should_compile/T13490.hs new file mode 100644 index 0000000000..72e0edef54 --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/T13490.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE FlexibleContexts, TypeFamilies #-} + +module T13490 where + +import Data.Typeable + +type family Foo a + +data C a + +foo :: (Typeable (C z), z ~ Foo zp) => C zp +foo = undefined diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T index 97a5350c7d..cfc4eff314 100644 --- a/testsuite/tests/typecheck/should_compile/all.T +++ b/testsuite/tests/typecheck/should_compile/all.T @@ -547,3 +547,4 @@ test('T13381', normal, compile_fail, ['']) test('T13337', normal, compile, ['']) test('T13343', normal, compile, ['']) test('T13458', normal, compile, ['']) +test('T13490', normal, compile, ['']) |
