Files
kotlin-fork/compiler/testData/codegen/bytecodeText/nullCheckOptimization/expressionValueIsNotNull.kt
T
Mark Punzalan 238cc7c257 [FIR] Enable BytecodeText tests for FIR.
143 out of 767 tests (18.6%) are currently failing.
2020-09-29 10:21:21 +03:00

24 lines
312 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// FILE: j/J.java
package j;
public class J {
public static final String ok() { return "OK"; }
}
// FILE: k.kt
import j.J
fun foo(a: Any) {}
fun test() {
val a = J.ok()
foo(a)
if (a == null) foo("NULL-1")
}
// @KKt.class:
// 0 IFNULL
// 0 IFNONNULL
// 0 NULL-1