diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirCallCompleter.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirCallCompleter.kt index 49117f70e68..243c231d75b 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirCallCompleter.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirCallCompleter.kt @@ -139,7 +139,9 @@ class FirCallCompleter( ConstraintSystemCompletionMode.PARTIAL -> { runCompletionForCall(candidate, completionMode, call, initialType, analyzer) - inferenceSession.addPartiallyResolvedCall(call) + if (inferenceSession !is FirBuilderInferenceSession) { + inferenceSession.addPartiallyResolvedCall(call) + } CompletionResult(call, false) }