mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
22 lines
379 B
Kotlin
Vendored
22 lines
379 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: test.kt
|
|
|
|
import kotlin.test.*
|
|
|
|
class C {
|
|
fun test() { J.s().memberExtension() }
|
|
fun String.memberExtension() {}
|
|
}
|
|
|
|
fun box(): String {
|
|
assertFailsWith<IllegalStateException> { C().test() }
|
|
return "OK"
|
|
}
|
|
|
|
// FILE: J.java
|
|
public class J {
|
|
public static String s() { return null; }
|
|
}
|