Files
kotlin/compiler/testData/codegen/bytecodeText/deadCodeElimination/boxing.kt
Denis Zharkov 5675d2b26b Dead code elimination
#KT-6602 Fixed
 #KT-6305 Fixed
 #KT-5656 Fixed
2015-01-15 15:13:05 +03:00

17 lines
201 B
Kotlin

fun foo(x: Any?) {}
fun box() {
val x: Int? = 1
x!!
val z: Int? = if (1 == 1) x else null
z!!
foo(1 as java.lang.Integer)
}
// 0 IFNULL
// 1 IFNONNULL
// 1 throwNpe
// 0 ATHROW