From a0dd62f8c58d5ce76c291d88a263d9f0ce9ebc36 Mon Sep 17 00:00:00 2001 From: Jinseong Jeon Date: Thu, 19 Nov 2020 16:37:42 -0800 Subject: [PATCH] Remove unnecessary expression --- .../org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt index fbbcdfe2ecf..50bfa79c876 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ResolutionStages.kt @@ -239,7 +239,7 @@ internal object CheckLowPriorityInOverloadResolution : CheckerStage() { } internal object PostponedVariablesInitializerResolutionStage : ResolutionStage() { - val BUILDER_INFERENCE_CLASS_ID: ClassId = ClassId.fromString("kotlin/BuilderInference") + private val BUILDER_INFERENCE_CLASS_ID: ClassId = ClassId.fromString("kotlin/BuilderInference") override suspend fun check(candidate: Candidate, callInfo: CallInfo, sink: CheckerSink, context: ResolutionContext) { val argumentMapping = candidate.argumentMapping ?: return @@ -251,7 +251,6 @@ internal object PostponedVariablesInitializerResolutionStage : ResolutionStage() val receiverType = type.receiverType(callInfo.session) ?: continue for (freshVariable in candidate.freshVariables) { - candidate.typeArgumentMapping if (candidate.csBuilder.isPostponedTypeVariable(freshVariable)) continue if (freshVariable !is TypeParameterBasedTypeVariable) continue val typeParameterSymbol = freshVariable.typeParameterSymbol