mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +00:00
18 lines
290 B
Kotlin
Vendored
18 lines
290 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: test.kt
|
|
|
|
import kotlin.test.*
|
|
|
|
fun String.extension() {}
|
|
|
|
fun box(): String {
|
|
assertFailsWith<NullPointerException> { J.s().extension() }
|
|
return "OK"
|
|
}
|
|
|
|
// FILE: J.java
|
|
public class J {
|
|
public static String s() { return null; }
|
|
}
|