Remove incorrect optimization in getUnionConstraintOfIntersection
This commit is contained in:
parent
4fee628447
commit
b9f805f2f4
1 changed files with 0 additions and 5 deletions
|
@ -7598,11 +7598,6 @@ namespace ts {
|
|||
constraint = getConstraintOfType(constraint);
|
||||
}
|
||||
if (constraint) {
|
||||
// A constraint that isn't a union type implies that the final type would be a non-union
|
||||
// type as well. Since non-union constraints are of no interest, we can exit here.
|
||||
if (!(constraint.flags & TypeFlags.Union)) {
|
||||
return undefined;
|
||||
}
|
||||
constraints = append(constraints, constraint);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue