summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail/readFail009.hs
blob: 5a98939fade3a4e719703113e4448876cc426a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module ShouldFail where

-- !!! Test for parse error in do/let expression

foo = do let foo = True
             return ()


-- Note the let binding at the end!
-- This gave a pattern-match failure in tcStmts in ghc-4.04proto

h x = x