blob: 0640f1fa05ce8f8ea5464fd414111430ae093415 [file]
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
inline class Z(private val i: Int) {
fun toByteArray() = ByteArray(1) { i.toByte() }
}
fun box(): String {
val z = Z(42)
if (z.toByteArray()[0].toInt() != 42) throw AssertionError()
return "OK"
}