Test Trac #13490
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 28 Mar 2017 07:44:11 +0000 (08:44 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 28 Mar 2017 07:44:11 +0000 (08:44 +0100)
testsuite/tests/typecheck/should_compile/T13490.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T

diff --git a/testsuite/tests/typecheck/should_compile/T13490.hs b/testsuite/tests/typecheck/should_compile/T13490.hs
new file mode 100644 (file)
index 0000000..72e0ede
--- /dev/null
@@ -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
index 97a5350..cfc4eff 100644 (file)
@@ -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, [''])