Files
kotlin-fork/compiler/testData/codegen/box/nullCheckOptimization/kt49136a.kt
T
2022-01-10 09:01:05 +00:00

25 lines
277 B
Kotlin
Vendored

// IGNORE_BACKEND: NATIVE
abstract class Z {
init {
check(this)
}
abstract val b: B
}
class A(override val b: B) : Z()
class B(val c: String)
fun use(a: Any?) {}
fun check(z: Z) {
use(z?.b?.c)
}
fun box(): String {
A(B(""))
return "OK"
}