Support tuple parameter types (#24576)

(cherry picked from commit e1be29942e)
This commit is contained in:
Antonis Geralis
2024-12-28 09:43:41 +02:00
committed by narimiran
parent a83c535ed4
commit f5804a36b9

View File

@@ -190,7 +190,7 @@ macro toTask*(e: typed{nkCall | nkInfix | nkPrefix | nkPostfix | nkCommand | nkC
# passing by static parameters
# so we pass them directly instead of passing by scratchObj
callNode.add nnkExprEqExpr.newTree(formalParams[i][0], e[i])
of nnkSym, nnkPtrTy, nnkProcTy, nnkTupleConstr:
of nnkSym, nnkPtrTy, nnkProcTy, nnkTupleTy, nnkTupleConstr:
addAllNode(param, e[i])
of nnkCharLit..nnkNilLit:
callNode.add nnkExprEqExpr.newTree(formalParams[i][0], e[i])