mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
17 lines
334 B
Kotlin
Vendored
17 lines
334 B
Kotlin
Vendored
// !LANGUAGE: -NullabilityAssertionOnExtensionReceiver
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: test.kt
|
|
import kotlin.test.*
|
|
|
|
inline fun String.extension() {}
|
|
|
|
fun box(): String {
|
|
J.s().extension() // NB no exception thrown
|
|
return "OK"
|
|
}
|
|
|
|
// FILE: J.java
|
|
public class J {
|
|
public static String s() { return null; }
|
|
} |