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.
2 parents 3970364 + 918ac8c commit a274ebfCopy full SHA for a274ebf
lib/IDE/ExprContextAnalysis.cpp
@@ -315,10 +315,6 @@ void swift::ide::collectPossibleReturnTypesFromContext(
315
}
316
317
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
-
322
// Use the type checked type if it has.
323
if (ACE->getType() && !ACE->getType()->hasError() &&
324
!ACE->getResultType()->hasUnresolvedType()) {
0 commit comments