mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
22 lines
348 B
Kotlin
Vendored
22 lines
348 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
// FILE: test.kt
|
|
inline class R(private val r: Int) {
|
|
|
|
companion object {
|
|
@JvmStatic
|
|
fun ok() = "OK"
|
|
}
|
|
}
|
|
|
|
fun box() = J.test()
|
|
|
|
// FILE: J.java
|
|
public class J {
|
|
public static String test() {
|
|
return R.ok();
|
|
}
|
|
} |