diff --git a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirCompletionCandidateChecker.kt b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirCompletionCandidateChecker.kt index 028dbdf196c..9d311871db0 100644 --- a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirCompletionCandidateChecker.kt +++ b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirCompletionCandidateChecker.kt @@ -42,7 +42,9 @@ internal class KtFirCompletionCandidateChecker( possibleExplicitReceiver: KtExpression?, ): KtExtensionApplicabilityResult = withValidityAssertion { require(firSymbolForCandidate is KtFirSymbol<*>) - return firSymbolForCandidate.firRef.withFir(phase = FirResolvePhase.IMPLICIT_TYPES_BODY_RESOLVE) { declaration -> + return firSymbolForCandidate.firRef.withFirWithPossibleResolveInside( + phase = FirResolvePhase.IMPLICIT_TYPES_BODY_RESOLVE + ) { declaration -> check(declaration is FirCallableDeclaration<*>) checkExtension(declaration, originalFile, nameExpression, possibleExplicitReceiver) }