diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/Autoboxing.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/Autoboxing.kt index 79a99dc7585..5dce6db9442 100644 --- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/Autoboxing.kt +++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/Autoboxing.kt @@ -457,7 +457,7 @@ private class InlineClassTransformer(private val context: Context) : IrBuildingT this.at(expression) val loweredConstructor = this@InlineClassTransformer.context.getLoweredInlineClassConstructor(callee) return if (callee.isPrimary) this.irBlock { - val argument = irTemporary(expression.getValueArgument(0)!!) + val argument = irTemporary(expression.getValueArgument(0)!!, irType = loweredConstructor.valueParameters.single().type) +irCall(loweredConstructor).apply { putValueArgument(0, irGet(argument)) }