| Index: lib/src/js_ast/printer.dart
|
| diff --git a/lib/src/js_ast/printer.dart b/lib/src/js_ast/printer.dart
|
| index 29bd7797c0335356a5e2fab89a39b3b627d5acb0..9e764aff0cce15da1274e40393f1676848cda647 100644
|
| --- a/lib/src/js_ast/printer.dart
|
| +++ b/lib/src/js_ast/printer.dart
|
| @@ -945,7 +945,8 @@ class Printer extends TypeScriptTypePrinter implements NodeVisitor {
|
| visitArrowFun(ArrowFun fun) {
|
| localNamer.enterScope(fun);
|
| if (fun.params.length == 1 &&
|
| - (fun.params.single.type == null || !options.emitTypes)) {
|
| + fun.params[0] is Identifier &&
|
| + (!options.emitTypes || fun.params[0].type == null)) {
|
| visitNestedExpression(fun.params.single, SPREAD,
|
| newInForInit: false, newAtStatementBegin: false);
|
| } else {
|
|
|