diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Candidate.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Candidate.kt index 9fcfb19b65e..5de58b49485 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Candidate.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Candidate.kt @@ -54,11 +54,7 @@ data class CallInfo( val argumentCount get() = arguments.size fun noStubReceiver(): CallInfo = - if (stubReceiver == null) this else CallInfo( - callKind, name, explicitReceiver, argumentList, - isSafeCall, isPotentialQualifierPart, typeArguments, session, - containingFile, implicitReceiverStack, expectedType, outerCSBuilder, lhs, null - ) + if (stubReceiver == null) this else copy(stubReceiver = null) fun replaceWithVariableAccess(): CallInfo = copy(callKind = CallKind.VariableAccess, typeArguments = emptyList(), argumentList = FirEmptyArgumentList)