We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0b6a1c commit 0f498deCopy full SHA for 0f498de
src/compiler/transformers/es2015.ts
@@ -1342,7 +1342,7 @@ namespace ts {
1342
* synthesized call to `super`
1343
*/
1344
function shouldAddRestParameter(node: ParameterDeclaration, inConstructorWithSynthesizedSuper: boolean) {
1345
- return node && node.dotDotDotToken && node.name.kind === SyntaxKind.Identifier && !inConstructorWithSynthesizedSuper;
+ return node && node.dotDotDotToken && node.name.kind === SyntaxKind.Identifier && !inConstructorWithSynthesizedSuper && resolver.getNodeCheckFlags(node) & NodeCheckFlags.EmitRestParam;
1346
}
1347
1348
/**
0 commit comments