Skip to content

Commit 6d08e74

Browse files
author
Amritpan Kaur
committed
[CSBindings] Add check to include key path function applications.
1 parent feb0f34 commit 6d08e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSBindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ PotentialBindings::inferFromRelational(Constraint *constraint) {
12511251

12521252
if (TypeVar->getImpl().isKeyPathType()) {
12531253
auto objectTy = type->lookThroughAllOptionalTypes();
1254-
if (!isKnownKeyPathType(objectTy))
1254+
if (!(isKnownKeyPathType(objectTy) || objectTy->is<AnyFunctionType>()))
12551255
return llvm::None;
12561256

12571257
auto &ctx = CS.getASTContext();

0 commit comments

Comments
 (0)