fixes #10058 [backport]
This commit is contained in:
parent
f9d58b9305
commit
23448a96cc
1 changed files with 3 additions and 2 deletions
|
|
@ -1736,8 +1736,9 @@ proc genVarSection(c: PCtx; n: PNode) =
|
||||||
#assert(a.sons[0].kind == nkSym) can happen for transformed vars
|
#assert(a.sons[0].kind == nkSym) can happen for transformed vars
|
||||||
if a.kind == nkVarTuple:
|
if a.kind == nkVarTuple:
|
||||||
for i in 0 .. a.len-3:
|
for i in 0 .. a.len-3:
|
||||||
if not a[i].sym.isGlobal: setSlot(c, a[i].sym)
|
if a[i].kind == nkSym:
|
||||||
checkCanEval(c, a[i])
|
if not a[i].sym.isGlobal: setSlot(c, a[i].sym)
|
||||||
|
checkCanEval(c, a[i])
|
||||||
c.gen(lowerTupleUnpacking(c.graph, a, c.getOwner))
|
c.gen(lowerTupleUnpacking(c.graph, a, c.getOwner))
|
||||||
elif a.sons[0].kind == nkSym:
|
elif a.sons[0].kind == nkSym:
|
||||||
let s = a.sons[0].sym
|
let s = a.sons[0].sym
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue