mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
22 lines
343 B
Kotlin
Vendored
22 lines
343 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 {
|
|
@JvmField
|
|
val ok = "OK"
|
|
}
|
|
}
|
|
|
|
fun box() = J.test()
|
|
|
|
// FILE: J.java
|
|
public class J {
|
|
public static String test() {
|
|
return R.ok;
|
|
}
|
|
} |