Support @JvmStatic in inline class companion object

#KT-27107
This commit is contained in:
Dmitry Petrov
2018-10-04 11:52:35 +03:00
parent 5304754e88
commit 0fd68d29f4
10 changed files with 152 additions and 6 deletions
@@ -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 {
@JvmStatic
fun ok() = "OK"
}
}
fun box() = J.test()
// FILE: J.java
public class J {
public static String test() {
return R.ok();
}
}