Merge K2 box tests to main box tests

This commit is contained in:
Alexander Udalov
2023-03-23 12:28:07 +01:00
committed by Space Team
parent 14c2030595
commit d3be38476a
32 changed files with 584 additions and 402 deletions
@@ -0,0 +1,19 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JVM_IR
var that: Int
lateinit field: String
get() = field.length
set(value) {
field = value.toString()
}
fun box(): String {
that = 1
return if (that == 1) {
"OK"
} else {
"fail: $that"
}
}