diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/KotlinToResolvedCallTransformer.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/KotlinToResolvedCallTransformer.kt index 55419909ada..3069962ffe2 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/KotlinToResolvedCallTransformer.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/KotlinToResolvedCallTransformer.kt @@ -674,13 +674,6 @@ fun CandidateApplicability.toResolutionStatus(): ResolutionStatus = when (this) else -> ResolutionStatus.OTHER_ERROR } -class NewVariableAsFunctionResolvedCallImpl( - override val variableCall: NewResolvedCallImpl, - override val functionCall: NewResolvedCallImpl, -) : VariableAsFunctionResolvedCall, ResolvedCall by functionCall { - val baseCall get() = functionCall.resolvedCallAtom.atom.psiKotlinCall.cast().baseCall -} - fun ResolvedCall<*>.isNewNotCompleted(): Boolean { if (this is NewVariableAsFunctionResolvedCallImpl) { return !functionCall.isCompleted diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/NewVariableAsFunctionResolvedCallImpl.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/NewVariableAsFunctionResolvedCallImpl.kt new file mode 100644 index 00000000000..9c7ba38807d --- /dev/null +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/NewVariableAsFunctionResolvedCallImpl.kt @@ -0,0 +1,22 @@ +/* + * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.resolve.calls.tower + +import org.jetbrains.kotlin.descriptors.CallableDescriptor +import org.jetbrains.kotlin.descriptors.FunctionDescriptor +import org.jetbrains.kotlin.descriptors.ValueParameterDescriptor +import org.jetbrains.kotlin.descriptors.VariableDescriptor +import org.jetbrains.kotlin.resolve.calls.model.ResolvedCall +import org.jetbrains.kotlin.resolve.calls.model.ResolvedValueArgument +import org.jetbrains.kotlin.resolve.calls.model.VariableAsFunctionResolvedCall +import org.jetbrains.kotlin.utils.addToStdlib.cast + +class NewVariableAsFunctionResolvedCallImpl( + override val variableCall: NewResolvedCallImpl, + override val functionCall: NewResolvedCallImpl, +) : VariableAsFunctionResolvedCall, ResolvedCall by functionCall { + val baseCall get() = functionCall.resolvedCallAtom.atom.psiKotlinCall.cast().baseCall +} \ No newline at end of file