blob: 9f5a468dd0b1052143816baefe4e43c2ca25a71f [file] [log] [blame]
class A {
companion object {
val s = "OK"
var v = "NOT OK"
}
fun f(): String = s
fun g() {
v = "OK"
}
inline fun i(j: () -> Unit) {
j()
}
fun h() {
i {
s
v = "OK"
}
}
}
// One direct `A.s` access in `f`.
// One direct `A.s` access in the accessibility bridge `access$getS$cp`.
// One direct `A.s` access in `h`.
// 3 GETSTATIC A.s
// One direct `A.v` set in `g`.
// One direct `A.v` set in the accessibility bridge `access$setV$cp`.
// One direct `A.v` set in `A.<clinit>`
// One direct `A.v` set in `h`.
// 4 PUTSTATIC A.v
// No calls to the getter/setter on the companion object.
// 0 INVOKEVIRTUAL A\$Companion.getS
// 0 INVOKEVIRTUAL A\$Companion.setV