[FE 1.0] Imitate having builder inference annotation while trying resolve with a builder inference
^KT-52892 Fixed
This commit is contained in:
+5
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user