fixes #992
This commit is contained in:
parent
7874c0efcb
commit
9fdb131686
2 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue