mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
19 lines
321 B
Kotlin
Vendored
19 lines
321 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: test.kt
|
|
|
|
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; }
|
|
}
|