We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb0f34 commit 6d08e74Copy full SHA for 6d08e74
lib/Sema/CSBindings.cpp
@@ -1251,7 +1251,7 @@ PotentialBindings::inferFromRelational(Constraint *constraint) {
1251
1252
if (TypeVar->getImpl().isKeyPathType()) {
1253
auto objectTy = type->lookThroughAllOptionalTypes();
1254
- if (!isKnownKeyPathType(objectTy))
+ if (!(isKnownKeyPathType(objectTy) || objectTy->is<AnyFunctionType>()))
1255
return llvm::None;
1256
1257
auto &ctx = CS.getASTContext();
0 commit comments