We published a Kotlin based library, and the Java crowd has no issues using it. However, we now have a Scala team trying to use it, and for whatever reason Scala cannot see anything in the Kotlin companion object:
class KotlinClass {
companion object {
fun someFun()...
}
}
Scala code:
KotlinClass.Companion.<someFun doesn't show up as an option here!!!>
Sry, it’s been a while since I used kotlin from java. Your right and my example is wrong. There should be some sort of static INSTANCE field which contains the singleton instance.