File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21726,6 +21726,7 @@ namespace ts {
21726
21726
return errorType;
21727
21727
}
21728
21728
flowDepth++;
21729
+ let sharedFlow: FlowNode | undefined;
21729
21730
while (true) {
21730
21731
const flags = flow.flags;
21731
21732
if (flags & FlowFlags.Shared) {
@@ -21738,6 +21739,7 @@ namespace ts {
21738
21739
return sharedFlowTypes[i];
21739
21740
}
21740
21741
}
21742
+ sharedFlow = flow;
21741
21743
}
21742
21744
let type: FlowType | undefined;
21743
21745
if (flags & FlowFlags.Assignment) {
@@ -21801,9 +21803,9 @@ namespace ts {
21801
21803
// simply return the non-auto declared type to reduce follow-on errors.
21802
21804
type = convertAutoToAny(declaredType);
21803
21805
}
21804
- if (flags & FlowFlags.Shared ) {
21806
+ if (sharedFlow ) {
21805
21807
// Record visited node and the associated type in the cache.
21806
- sharedFlowNodes[sharedFlowCount] = flow ;
21808
+ sharedFlowNodes[sharedFlowCount] = sharedFlow ;
21807
21809
sharedFlowTypes[sharedFlowCount] = type;
21808
21810
sharedFlowCount++;
21809
21811
}
You can’t perform that action at this time.
0 commit comments