mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
19 lines
298 B
Kotlin
Vendored
19 lines
298 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
fun almostAlwaysTrue() = true
|
|
|
|
fun test() {
|
|
lateinit var z: String
|
|
run {
|
|
if (almostAlwaysTrue()) {
|
|
z = ""
|
|
}
|
|
}
|
|
println(z)
|
|
println(z)
|
|
println(z)
|
|
}
|
|
|
|
// 0 IFNULL
|
|
// 1 IFNONNULL
|
|
// 1 throwUninitializedPropertyAccessException
|