fixes #7610
This commit is contained in:
parent
8c09ffd36d
commit
a30b52eb64
1 changed files with 1 additions and 1 deletions
|
|
@ -400,7 +400,7 @@ proc exprColonEqExprListAux(p: var TParser, endTok: TTokType, result: PNode) =
|
||||||
if p.tok.tokType != tkComma: break
|
if p.tok.tokType != tkComma: break
|
||||||
getTok(p)
|
getTok(p)
|
||||||
# (1,) produces a tuple expression
|
# (1,) produces a tuple expression
|
||||||
if endTok == tkParRi and p.tok.tokType == tkParRi:
|
if endTok == tkParRi and p.tok.tokType == tkParRi and result.kind == nkPar:
|
||||||
result.kind = nkTupleConstr
|
result.kind = nkTupleConstr
|
||||||
skipComment(p, a)
|
skipComment(p, a)
|
||||||
optPar(p)
|
optPar(p)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue