FIR: don't add partially resolved call in builder inference mode

This commit is contained in:
Mikhail Glukhikh
2022-01-14 23:24:51 +03:00
committed by teamcity
parent e8be9d4861
commit bd6fef7841
@@ -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)
}