mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
19 lines
333 B
Kotlin
Vendored
19 lines
333 B
Kotlin
Vendored
// 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; }
|
|
} |