mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #77537 from hamishknight/complete-func
[Completion] Type-check parent closures for local functions
This commit is contained in:
@@ -2221,7 +2221,7 @@ static void diagnoseImplicitSelfUseInClosure(const Expr *E,
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return parentContext->getInnermostClosureForSelfCapture();
|
||||
return parentContext->getInnermostClosureForCaptures();
|
||||
}
|
||||
|
||||
bool shouldRecordClosure(const AbstractClosureExpr *E) {
|
||||
|
||||
Reference in New Issue
Block a user