mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
26 lines
408 B
Kotlin
Vendored
26 lines
408 B
Kotlin
Vendored
// !API_VERSION: LATEST
|
|
// IGNORE_BACKEND: JVM_IR
|
|
// TODO KT-36813 Support code generated by JVM_IR in redundant null check optimization
|
|
// FILE: j/J.java
|
|
|
|
package j;
|
|
|
|
public class J {
|
|
public static final String ok() { return "OK"; }
|
|
}
|
|
|
|
// FILE: foo.kt
|
|
fun foo(a: Any) {}
|
|
|
|
// FILE: k.kt
|
|
import j.J
|
|
|
|
fun test() {
|
|
val a = J.ok()
|
|
foo(a)
|
|
foo(a)
|
|
}
|
|
|
|
// @KKt.class:
|
|
// 1 checkNotNullExpressionValue
|