fixes tuple unpacking for nim ic

This commit is contained in:
ringabout
2026-03-20 11:15:27 +08:00
parent b1c68bbab4
commit ab2256faee

View File

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