diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/T2572.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/T2572.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T2572.hs b/testsuite/tests/typecheck/should_compile/T2572.hs new file mode 100644 index 0000000000..189055914a --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/T2572.hs @@ -0,0 +1,10 @@ + {-# LANGUAGE RankNTypes, ScopedTypeVariables #-}
+
+-- Trac #2572
+
+module Foo where
+
+type GTypeFun = forall a . a -> ()
+
+gmapType :: Int -> GTypeFun
+gmapType _ (_ :: a) = undefined
|