mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
fixes #992
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user