Files
kotlin-fork/compiler/testData/debug/stepping/initBlocksCompanion.kt
T
2022-08-05 11:53:40 +00:00

64 lines
980 B
Kotlin
Vendored

// FILE: test.kt
class A {
companion object {
val s: String
init {
s = "OK"
}
val x = x()
init { val a = 32 }
init {
val b = 42
}
init
{
val c = 43
}
}
}
fun x() = ""
fun box() {
A.x
A.s
}
// EXPECTATIONS JVM JVM_IR
// test.kt:29 box
// test.kt:7 <clinit>
// test.kt:8 <clinit>
// test.kt:9 <clinit>
// test.kt:11 <clinit>
// test.kt:13 <clinit>
// test.kt:15 <clinit>
// test.kt:16 <clinit>
// test.kt:17 <clinit>
// test.kt:19 <clinit>
// test.kt:21 <clinit>
// test.kt:22 <clinit>
// test.kt:11 getX
// test.kt:11 getX
// test.kt:29 box
// test.kt:30 box
// test.kt:5 getS
// test.kt:5 getS
// test.kt:30 box
// test.kt:31 box
// EXPECTATIONS JS_IR
// test.kt:29 box
// test.kt:8 Companion_19
// test.kt:11 Companion_19
// test.kt:26 x
// test.kt:13 Companion_19
// test.kt:16 Companion_19
// test.kt:21 Companion_19
// test.kt:30 box