Files
kotlin/compiler/testData/codegen/box/javaInterop/notNullAssertions/nullabilityAssertionOnInlineFunExtensionReceiver_lv12.kt
2018-06-28 12:26:41 +02:00

20 lines
359 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: test.kt
// LANGUAGE_VERSION: 1.2
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; }
}