Skip to content

Commit a274ebf

Browse files
authored
Merge pull request swiftlang#36064 from rintaro/ide-completion-rdar74430478
[CodeCompletion] Don't try to re-typecheck ClosureExpr
2 parents 3970364 + 918ac8c commit a274ebf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/IDE/ExprContextAnalysis.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,6 @@ void swift::ide::collectPossibleReturnTypesFromContext(
315315
}
316316

317317
if (auto ACE = dyn_cast<AbstractClosureExpr>(DC)) {
318-
// Try type checking the closure signature if it hasn't.
319-
if (!ACE->getType())
320-
swift::typeCheckASTNodeAtLoc(ACE->getParent(), ACE->getLoc());
321-
322318
// Use the type checked type if it has.
323319
if (ACE->getType() && !ACE->getType()->hasError() &&
324320
!ACE->getResultType()->hasUnresolvedType()) {

0 commit comments

Comments
 (0)