Test: @JvmField in inline class companion
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND: JS, JS_IR, JVM_IR
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user