summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read040.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/read040.hs')
-rw-r--r--testsuite/tests/parser/should_compile/read040.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read040.hs b/testsuite/tests/parser/should_compile/read040.hs
new file mode 100644
index 0000000000..e6d6629744
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/read040.hs
@@ -0,0 +1,8 @@
+{-# LANGUAGE ScopedTypeVariables #-}
+-- A type signature on the LHS of a do-stmt was a parse
+-- error in 6.4.2, but ok thereafter
+
+module ShouldCompile where
+
+f () = do { x :: Bool <- return True
+ ; return x }