diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/T700.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/T700.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T700.hs b/testsuite/tests/typecheck/should_compile/T700.hs new file mode 100644 index 0000000000..9024033c29 --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/T700.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE RankNTypes #-} + +module T700 where + +-- These two should behave the same way + +f,g :: (forall a. Maybe a) -> (forall a. a) + +f x = case x of Just y -> y +g (Just y) = y |