From c7bc8547dafa4d1e2a0c051aeb8c32aefeaea2c7 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Tue, 23 Jan 2024 17:39:55 +0100 Subject: [PATCH] K2: inline notFixedInputTypeVariables in ConstraintSystemCompleter --- .../fir/resolve/inference/ConstraintSystemCompleter.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)