Always complete calls not related to the builder inference

^KT-47830 Fixed
This commit is contained in:
Victor Petukhov
2021-08-03 12:24:37 +03:00
committed by teamcityserver
parent dc8dbad0bc
commit cf3bd016be
6 changed files with 23 additions and 26 deletions
@@ -94,10 +94,7 @@ class BuilderInferenceSession(
return subResolvedAtoms?.any { it.hasPostponed() } == true
}
val isUnrestrictedBuilderInferenceSupported =
callComponents.languageVersionSettings.supportsFeature(LanguageFeature.UnrestrictedBuilderInference)
if (!isUnrestrictedBuilderInferenceSupported && !candidate.isSuitableForBuilderInference()) {
if (!candidate.isSuitableForBuilderInference()) {
return true
}