Skip to content

Commit 638a3bf

Browse files
committed
Remove now duplicated handling of missingType
1 parent 08dfb4c commit 638a3bf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/compiler/checker.ts

-6
Original file line numberDiff line numberDiff line change
@@ -14952,12 +14952,6 @@ namespace ts {
1495214952
includes & TypeFlags.IncludesWildcard ? wildcardType : anyType :
1495314953
includes & TypeFlags.Null || containsType(typeSet, unknownType) ? unknownType : nonNullUnknownType;
1495414954
}
14955-
if (includes & TypeFlags.Undefined) {
14956-
const missingIndex = binarySearch(typeSet, missingType, getTypeId, compareValues);
14957-
if (missingIndex >= 0 && containsType(typeSet, undefinedType)) {
14958-
orderedRemoveItemAt(typeSet, missingIndex);
14959-
}
14960-
}
1496114955
if (includes & (TypeFlags.Literal | TypeFlags.UniqueESSymbol | TypeFlags.TemplateLiteral | TypeFlags.StringMapping) || includes & TypeFlags.Void && includes & TypeFlags.Undefined) {
1496214956
removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & UnionReduction.Subtype));
1496314957
}

0 commit comments

Comments
 (0)