diff --git a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/KotlinCallResolver.kt b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/KotlinCallResolver.kt index d0ecb925797..4b898f6aae3 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/KotlinCallResolver.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/KotlinCallResolver.kt @@ -66,11 +66,13 @@ class KotlinCallResolver( ): Collection { kotlinCall.checkCallInvariants() + val isSafeCall = (kotlinCall.explicitReceiver as? SimpleKotlinCallArgument)?.isSafeCall ?: false + val resolutionCandidates = givenCandidates.map { SimpleKotlinResolutionCandidate(callContext, kotlinCall, if (it.dispatchReceiver == null) ExplicitReceiverKind.NO_EXPLICIT_RECEIVER else ExplicitReceiverKind.DISPATCH_RECEIVER, - it.dispatchReceiver?.let { ReceiverExpressionKotlinCallArgument(it) }, + it.dispatchReceiver?.let { ReceiverExpressionKotlinCallArgument(it, isSafeCall) }, null, it.descriptor, it.knownTypeParametersResultingSubstitutor,