mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
21 lines
340 B
Kotlin
Vendored
21 lines
340 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: 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; }
|
|
}
|