mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
25 lines
316 B
Kotlin
Vendored
25 lines
316 B
Kotlin
Vendored
// IGNORE_BACKEND: 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()
|
|
a!!
|
|
foo(a)
|
|
if (a == null) foo("NULL-1")
|
|
}
|
|
|
|
// @KKt.class:
|
|
// 0 IFNULL
|
|
// 1 IFNONNULL
|
|
// 0 NULL-1 |