mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-14 09:49:40 -05:00
Merge remote-tracking branch 'origin/master' into singlyOverlappyTypes
This commit is contained in:
@@ -11981,7 +11981,7 @@ namespace ts {
|
||||
// If we have a union of index types, it seems likely that we
|
||||
// needed to elaborate between two generic mapped types anyway.
|
||||
if (overlap.flags & TypeFlags.Union) {
|
||||
const len = length((overlap as UnionType).types);
|
||||
const len = length(filter((overlap as UnionType).types, isUnitType));
|
||||
if (len >= matchingCount) {
|
||||
bestMatch = target;
|
||||
matchingCount = len;
|
||||
|
||||
Reference in New Issue
Block a user