const named tuple unpacking

This commit is contained in:
Jasper Jenkins 2019-05-01 22:18:45 -07:00
commit 8a6b416c28
2 changed files with 22 additions and 1 deletions

View file

@ -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)