diff options
-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, ['']) |