File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19004,8 +19004,8 @@ namespace ts {
19004
19004
return key = getFlowCacheKey(reference, declaredType, initialType, flowContainer);
19005
19005
}
19006
19006
19007
- function captureContainingUnion(flow: FlowNode, type: FlowType) {
19008
- if (flow.flags & (FlowFlags.Assignment | FlowFlags.Condition) && !isIncomplete(type) && type.flags & TypeFlags.Union) {
19007
+ function captureContainingUnion(type: FlowType) {
19008
+ if (!isIncomplete(type) && type.flags & TypeFlags.Union) {
19009
19009
containingUnion = type as UnionType;
19010
19010
}
19011
19011
}
@@ -19029,7 +19029,7 @@ namespace ts {
19029
19029
for (let i = sharedFlowStart; i < sharedFlowCount; i++) {
19030
19030
if (sharedFlowNodes[i] === flow) {
19031
19031
flowDepth--;
19032
- captureContainingUnion(flow, sharedFlowTypes[i]);
19032
+ captureContainingUnion(sharedFlowTypes[i]);
19033
19033
return sharedFlowTypes[i];
19034
19034
}
19035
19035
}
@@ -19107,7 +19107,7 @@ namespace ts {
19107
19107
sharedFlowTypes[sharedFlowCount] = type;
19108
19108
sharedFlowCount++;
19109
19109
}
19110
- captureContainingUnion(flow, type);
19110
+ captureContainingUnion(type);
19111
19111
flowDepth--;
19112
19112
return type;
19113
19113
}
You can’t perform that action at this time.
0 commit comments