diff options
Diffstat (limited to 'testsuite/tests/parser/should_fail/readFail009.hs')
-rw-r--r-- | testsuite/tests/parser/should_fail/readFail009.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/readFail009.hs b/testsuite/tests/parser/should_fail/readFail009.hs new file mode 100644 index 0000000000..93a7b84d5b --- /dev/null +++ b/testsuite/tests/parser/should_fail/readFail009.hs @@ -0,0 +1,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 + + + |