Sema: Fix request cycle due to unnecessary Sendable check with static method

Fixes rdar://139747886.
This commit is contained in:
Slava Pestov
2024-11-13 15:15:08 -05:00
parent 1965f96aff
commit 59ba1a0294
2 changed files with 16 additions and 0 deletions

View File

@@ -10149,6 +10149,9 @@ performMemberLookup(ConstraintKind constraintKind, DeclNameRef memberName,
if (!isa_and_nonnull<FuncDecl>(decl))
return false;
if (!decl->isInstanceMember())
return false;
auto hasAppliedSelf = decl->hasCurriedSelf() &&
doesMemberRefApplyCurriedSelf(baseObjTy, decl);
return getNumApplications(decl, hasAppliedSelf, functionRefKind) <