summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/parser/should_fail/readFail007.hs
blob: 4466f17d18a0bc40d2bd5cb4e0ecf0243c6d7730 (plain)
1
2
3
4
5
6
7
8
-- !!! Expressions as patterns inside do stmt blocks
module ShouldFail where

f :: Int -> IO Int
f x = do
  (2+2) <- 2
  return x