Support tuple parameter types (#24576)

This commit is contained in:
Antonis Geralis
2024-12-28 09:43:41 +02:00
committed by GitHub
parent cd220fe3e1
commit e1be29942e

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