mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-22 23:00:58 +00:00
fixes tuple unpacking for nim ic
This commit is contained in:
@@ -781,6 +781,8 @@ proc makeVarTupleSection(c: PContext, n, a, def: PNode, typ: PType, symkind: TSy
|
||||
let temp = newSym(symkind, getIdent(c.cache, "tmpTuple"), c.idgen, getCurrOwner(c), n.info)
|
||||
temp.typ = typ
|
||||
temp.flagsImpl.incl(sfGenSym)
|
||||
if getCurrOwner(c).kind == skModule:
|
||||
temp.flagsImpl.incl(sfGlobal)
|
||||
lastDef = newNodeI(defkind, a.info)
|
||||
newSons(lastDef, 3)
|
||||
lastDef[0] = newSymNode(temp)
|
||||
|
||||
Reference in New Issue
Block a user