const named tuple unpacking
This commit is contained in:
parent
c94ab46923
commit
8a6b416c28
2 changed files with 22 additions and 1 deletions
|
|
@ -701,7 +701,7 @@ proc getConstExpr(m: PSym, n: PNode; g: ModuleGraph): PNode =
|
|||
for i in countup(0, sonsLen(n) - 1):
|
||||
var a = getConstExpr(m, n.sons[i].sons[1], g)
|
||||
if a == nil: return nil
|
||||
result.sons[i].sons[1] = a
|
||||
result.sons[i] = a
|
||||
else:
|
||||
for i in countup(0, sonsLen(n) - 1):
|
||||
var a = getConstExpr(m, n.sons[i], g)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue