Support for stmtListExpr in parser after major keywords. Scaled down version. (#10852)

* Support for stmtListExpr in parser after major keywords
* fixes #4035
This commit is contained in:
cooldome 2019-03-18 10:09:49 +00:00 • committed by Andreas Rumpf
commit 862897dc0f
4 changed files with 54 additions and 12 deletions

View file

@ -0,0 +1,20 @@
discard """
output: '''10'''
"""
proc xx(a: int): int =
let y = 0
return
var x = 0
x + y
proc b(x: int): int =
raise
var e: ref Exception
new(e)
e.msg = "My Exception msg"
e
##issue 4035
echo(5 +
5)