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

18 lines
373 B
Kotlin
Vendored

// !LANGUAGE: -NullabilityAssertionOnExtensionReceiver
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: test.kt
import kotlin.test.*
fun String.extension() {}
fun box(): String {
assertFailsWith<IllegalArgumentException> { J.s().extension() }
return "OK"
}
// FILE: J.java
public class J {
public static String s() { return null; }
}