File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -4076,10 +4076,6 @@ namespace ts {
4076
4076
}
4077
4077
}
4078
4078
4079
- function compareTypeIds(type1: Type, type2: Type): number {
4080
- return type1.id - type2.id;
4081
- }
4082
-
4083
4079
// We always deduplicate the constituent type set based on object identity, but we'll also deduplicate
4084
4080
// based on the structure of the types unless the noDeduplication flag is true, which is the case when
4085
4081
// creating a union type from a type node and when instantiating a union type. In both of those cases,
@@ -4101,7 +4097,6 @@ namespace ts {
4101
4097
else {
4102
4098
removeDuplicateTypes(typeSet);
4103
4099
}
4104
- typeSet.sort(compareTypeIds);
4105
4100
if (typeSet.length === 1) {
4106
4101
return typeSet[0];
4107
4102
}
You can’t perform that action at this time.
0 commit comments