Skip to content

Commit 53fe858

Browse files
committed
No union type subtype reduction in getImplicitIndexTypeOfType
1 parent 586fe18 commit 53fe858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10458,7 +10458,7 @@ namespace ts {
1045810458
append(propTypes, getIndexTypeOfType(type, IndexKind.Number));
1045910459
}
1046010460
if (propTypes.length) {
10461-
return getUnionType(propTypes, UnionReduction.Subtype);
10461+
return getUnionType(propTypes);
1046210462
}
1046310463
}
1046410464
return undefined;

0 commit comments

Comments
 (0)