// 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_IR // test.kt:30 box // test.kt:8 // test.kt:9 // test.kt:10 // test.kt:12 // test.kt:14 // test.kt:16 // test.kt:17 // test.kt:18 // test.kt:20 // test.kt:22 // test.kt:23 // test.kt:12 getX // test.kt:12 getX // test.kt:30 box // test.kt:31 box // test.kt:6 getS // test.kt:6 getS // test.kt:31 box // test.kt:32 box // EXPECTATIONS JS_IR // test.kt:30 box // test.kt:9 // test.kt:12 // test.kt:27 x // test.kt:14 // test.kt:17 // test.kt:22 // test.kt:5 // test.kt:31 box // test.kt:32 box // EXPECTATIONS WASM // test.kt:9 $Companion. (12, 16, 16, 16, 16, 12) // test.kt:12 $Companion. // test.kt:27 $x (10, 10, 10, 10, 12) // test.kt:14 $Companion. (23, 15) // test.kt:17 $Companion. (20, 12) // test.kt:22 $Companion. (20, 12) // test.kt:24 $Companion. // test.kt:30 $box // test.kt:31 $box // test.kt:32 $box