File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -12622,6 +12622,14 @@ namespace ts {
12622
12622
// or parameter. The flow container is the innermost function starting with which we analyze the control
12623
12623
// flow graph to determine the control flow based type.
12624
12624
const isParameter = getRootDeclaration(declaration).kind === SyntaxKind.Parameter;
12625
+
12626
+ if (isParameter) {
12627
+ const parameterDeclaration = getRootDeclaration(declaration) as ParameterDeclaration;
12628
+ if (parameterDeclaration.dotDotDotToken) {
12629
+ getNodeLinks(parameterDeclaration).flags |= NodeCheckFlags.EmitRestParam;
12630
+ }
12631
+ }
12632
+
12625
12633
const declarationContainer = getControlFlowContainer(declaration);
12626
12634
let flowContainer = getControlFlowContainer(node);
12627
12635
const isOuterVariable = flowContainer !== declarationContainer;
You can’t perform that action at this time.
0 commit comments