mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
Similarly to previous commit, this method was unused since its introduction before 1.0, so we're changing its semantics to throw NPE and starting to use it with API version >= 1.4. #KT-22275 In Progress
26 lines
345 B
Kotlin
Vendored
26 lines
345 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// 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 LDC "a"
|
|
// 1 checkExpressionValueIsNotNull
|
|
// 0 checkNotNullExpressionValue
|