File tree 1 file changed +8
-0
lines changed 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12611,6 +12611,14 @@ namespace ts {
12611
12611
// or parameter. The flow container is the innermost function starting with which we analyze the control
12612
12612
// flow graph to determine the control flow based type.
12613
12613
const isParameter = getRootDeclaration(declaration).kind === SyntaxKind.Parameter;
12614
+
12615
+ if (isParameter) {
12616
+ const parameterDeclaration = getRootDeclaration(declaration) as ParameterDeclaration;
12617
+ if (parameterDeclaration.dotDotDotToken) {
12618
+ getNodeLinks(parameterDeclaration).flags |= NodeCheckFlags.EmitRestParam;
12619
+ }
12620
+ }
12621
+
12614
12622
const declarationContainer = getControlFlowContainer(declaration);
12615
12623
let flowContainer = getControlFlowContainer(node);
12616
12624
const isOuterVariable = flowContainer !== declarationContainer;
You can’t perform that action at this time.
0 commit comments