File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -20621,7 +20621,8 @@ namespace ts {
20621
20621
if (sourceInfo) {
20622
20622
return indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors);
20623
20623
}
20624
- if (!(intersectionState & IntersectionState.Source) && isObjectTypeWithInferableIndex(source)) {
20624
+ if (!(intersectionState & IntersectionState.Source) && isObjectTypeWithInferableIndex(source) &&
20625
+ !((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyAnonymousObjectType(source) && !(getObjectFlags(source) & ObjectFlags.FreshLiteral))) {
20625
20626
// Intersection constituents are never considered to have an inferred index signature
20626
20627
return membersRelatedToIndexInfo(source, targetInfo, reportErrors);
20627
20628
}
You can’t perform that action at this time.
0 commit comments