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,18 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JVM_IR
class A {
val a: Number
private field = 1
val b: Number
internal field = a + 3
}
fun box(): String {
return if (A().b + 20 == 24) {
"OK"
} else {
"fail: A().b = " + A().b.toString()
}
}