Skip to content

Commit

Permalink
Update src/generator/writers/writeFunction.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Trunov <[email protected]>
  • Loading branch information
Gusarich and anton-trunov committed Oct 8, 2024
1 parent ce7bbe2 commit a0c737b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/generator/writers/writeFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ export function writeStatement(
}
case "statement_destruct": {
ctx.append(
//`var ${resolveFuncTypeUnpack(t, funcIdOf(f.name), ctx)} = ${writeCastedExpression(f.expression, t, ctx)};`,
`var (${f.identifiers.map((n) => funcIdOf(n)).join(", ")}) = ${writeCastedExpression(f.expression, getExpType(ctx.ctx, f.expression), ctx)};`,
);
return;
Expand Down

0 comments on commit a0c737b

Please sign in to comment.