Skip to content

Commit

Permalink
Remove unnecessary expression
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjeon authored and mglukhikh committed Nov 25, 2020
1 parent dfc5059 commit a0dd62f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a0dd62f

Please sign in to comment.