mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CS] Resolve callees for key path dynamic members (#28807)
[CS] Resolve callees for key path dynamic members
This commit is contained in:
@@ -788,9 +788,7 @@ getCalleeDeclAndArgs(ConstraintSystem &cs,
|
||||
|
||||
// Our remaining path can only be 'ApplyArgument'.
|
||||
auto path = callLocator->getPath();
|
||||
if (!path.empty() &&
|
||||
!(path.size() <= 2 &&
|
||||
path.back().getKind() == ConstraintLocator::ApplyArgument))
|
||||
if (!path.empty() && !path.back().is<LocatorPathElt::ApplyArgument>())
|
||||
return formUnknownCallee();
|
||||
|
||||
// Dig out the callee information.
|
||||
|
||||
Reference in New Issue
Block a user