Merge pull request #77537 from hamishknight/complete-func

[Completion] Type-check parent closures for local functions
This commit is contained in:
Hamish Knight
2024-11-12 10:40:53 +00:00
committed by GitHub
12 changed files with 123 additions and 49 deletions

View File

@@ -2221,7 +2221,7 @@ static void diagnoseImplicitSelfUseInClosure(const Expr *E,
return nullptr;
}
return parentContext->getInnermostClosureForSelfCapture();
return parentContext->getInnermostClosureForCaptures();
}
bool shouldRecordClosure(const AbstractClosureExpr *E) {