This commit is contained in:
Araq
2014-03-26 16:22:34 +01:00
parent 7874c0efcb
commit 9fdb131686
2 changed files with 8 additions and 0 deletions

View File

@@ -525,6 +525,8 @@ proc parsePar(p: var TParser): PNode =
asgn.sons[0] = a
asgn.sons[1] = b
result.add(asgn)
if p.tok.tokType == tkSemiColon:
semiStmtList(p, result)
elif p.tok.tokType == tkSemiColon:
# stmt context:
result.add(a)

View File

@@ -86,3 +86,9 @@ proc parseResponse(): PJsonNode =
if (var n=result["key2"]; n != nil):
excMsg &= n.str
raise newException(ESynch, excMsg)
#bug #992
var se = @[1,2]
let b = (se[1] = 1; 1)