Skip to content

Commit 1f69426

Browse files
committed
fix support of arrow function expression
1 parent 4718640 commit 1f69426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/printer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export class Printer implements ng.ExpressionVisitor, ng.StatementVisitor {
374374
} else {
375375
body = ast.body.visitExpression(this, context);
376376
}
377-
return `(${params}) => ${body}`;
377+
return `(${params}) => (${body})`;
378378
}
379379

380380
visitBinaryOperatorExpr(

0 commit comments

Comments
 (0)