fixes #1431
This commit is contained in:
parent
aaf4b04203
commit
05dbba0e38
1 changed files with 3 additions and 2 deletions
|
|
@ -1769,7 +1769,8 @@ proc checkPar(n: PNode): TParKind =
|
|||
if length == 0:
|
||||
result = paTuplePositions # ()
|
||||
elif length == 1:
|
||||
result = paSingle # (expr)
|
||||
if n.sons[0].kind == nkExprColonExpr: result = paTupleFields
|
||||
else: result = paSingle # (expr)
|
||||
else:
|
||||
if n.sons[0].kind == nkExprColonExpr: result = paTupleFields
|
||||
else: result = paTuplePositions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue