diff --git a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt index 805012e4d07..30ec56d688a 100644 --- a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt +++ b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt @@ -149,9 +149,9 @@ internal class DefaultCallInterceptor(override val interpreter: IrInterpreter) : private data class Arg(var type: String, var value: Any?) private fun calculateBuiltIns(irFunction: IrFunction, args: List) { - val methodName = when (val property = irFunction.property?.symbol) { + val methodName = when (val property = irFunction.property) { null -> irFunction.name.asString() - else -> property.owner.name.asString() + else -> property.name.asString() } val receiverType = irFunction.dispatchReceiverParameter?.type ?: irFunction.extensionReceiverParameter?.type