diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/ConstraintSystemCompleter.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/ConstraintSystemCompleter.kt index b344c99ed1e..c1f1eff4797 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/ConstraintSystemCompleter.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/ConstraintSystemCompleter.kt @@ -245,12 +245,9 @@ class ConstraintSystemCompleter(components: BodyResolveComponents, private val c val lambdaArguments = postponedArguments.filterIsInstance().takeIf { it.isNotEmpty() } ?: return false - fun ResolvedLambdaAtom.notFixedInputTypeVariables(): List = - inputTypes.flatMap { it.extractTypeVariables() }.filter { it !in fixedTypeVariables } - var anyAnalyzed = false for (argument in lambdaArguments) { - val notFixedInputTypeVariables = argument.notFixedInputTypeVariables() + val notFixedInputTypeVariables = argument.inputTypes.flatMap { it.extractTypeVariables() }.filter { it !in fixedTypeVariables } if (notFixedInputTypeVariables.isEmpty()) continue analyze(argument)