Files
kotlin-fork/compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnInlineFunExtensionReceiver_lv12.kt
T
2019-11-19 11:00:09 +03:00

22 lines
366 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: test.kt
import kotlin.test.*
inline 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; }
}