Files
kotlin-fork/compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnExtensionReceiver_lv12.kt
T

17 lines
314 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: test.kt
// LANGUAGE_VERSION: 1.2
import kotlin.test.*
fun String.extension() {}
fun box(): String {
assertFailsWith<IllegalStateException> { J.s().extension() }
return "OK"
}
// FILE: J.java
public class J {
public static String s() { return null; }
}