mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
1. checkExpressionValueIsNotNull implies checked value is non-null 2. throwNpe never returns #KT-18162 Fixed Target versions 1.1.4 #KT-18164 Fixed Target versions 1.1.4
23 lines
285 B
Kotlin
Vendored
23 lines
285 B
Kotlin
Vendored
// 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 |