mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Fix request cycle due to unnecessary Sendable check with static method
Fixes rdar://139747886.
This commit is contained in:
@@ -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) <
|
||||
|
||||
Reference in New Issue
Block a user