Add test for KT-27140
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// WITH_RUNTIME
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user