diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/IntrinsicifyCallsLowering.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/IntrinsicifyCallsLowering.kt index c44f000d856..5c11ce62530 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/IntrinsicifyCallsLowering.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/IntrinsicifyCallsLowering.kt @@ -509,6 +509,9 @@ fun shouldReplaceToStringWithRuntimeCall(call: IrCall): Boolean { // - Use direct method call for dynamic types??? // - Define Any?.toString() in runtime library and stop intrincifying extensions + if (call.valueArgumentsCount > 0) + return false + val receiverParameterType = with(call.symbol.owner) { dispatchReceiverParameter ?: extensionReceiverParameter }?.type ?: return false