<https://kotlinlang.org/docs/reference/java-to-kot...
# getting-started
h
https://kotlinlang.org/docs/reference/java-to-kotlin-interop.html says that the
@JvmStatic
usage here is valid:
Copy code
object Obj {
    @JvmStatic fun foo() {}
    fun bar() {}
}
However I have a object that looks almost exactly the same and I get
Error: Only functions in named objects and companion objects of classes can be annotated with '@JvmStatic'