[FE 1.0] Imitate having builder inference annotation while trying resolve with a builder inference

^KT-52892 Fixed
This commit is contained in:
Victor Petukhov
2022-06-18 18:54:05 +02:00
parent fa7809cd80
commit 9e8ef56cca
2 changed files with 7 additions and 2 deletions
@@ -226,6 +226,11 @@ class KotlinConstraintSystemCompleter(
if (!argument.atom.hasBuilderInferenceAnnotation && !useBuilderInferenceWithoutAnnotation)
continue
// Imitate having builder inference annotation. TODO: Remove after getting rid of @BuilderInference
if (!argument.atom.hasBuilderInferenceAnnotation && useBuilderInferenceWithoutAnnotation) {
argument.atom.hasBuilderInferenceAnnotation = true
}
val notFixedInputTypeVariables = argument.inputTypes
.flatMap { it.extractTypeVariables() }.filter { it !in fixedTypeVariables }