mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
The newly added pass folds the set of constant functions of the current backend, plus IrBuiltIns.
19 lines
197 B
Kotlin
Vendored
19 lines
197 B
Kotlin
Vendored
class A
|
|
fun box(u: Int) {
|
|
val x: A? = A()
|
|
val y: A?
|
|
if (u == 0) {
|
|
y = x
|
|
}
|
|
else {
|
|
y = null
|
|
}
|
|
|
|
y!!
|
|
}
|
|
|
|
// 0 IFNULL
|
|
// 1 IFNONNULL
|
|
// 1 throwNpe
|
|
// 0 ATHROW
|