diff options
Diffstat (limited to 'testsuite/tests/ado/ado006.hs')
-rw-r--r-- | testsuite/tests/ado/ado006.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/ado/ado006.hs b/testsuite/tests/ado/ado006.hs new file mode 100644 index 0000000000..1cba57c4c9 --- /dev/null +++ b/testsuite/tests/ado/ado006.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE ApplicativeDo #-} +module Test where + +-- This exposed a bug in zonking ApplicativeLastStmt +test :: IO Int +test + = do + x <- return () + h <- return (\_ -> 3) + return (h ()) |