ValV
07/09/2019, 8:08 AMRegexCompleter("SomeCoolRegexString", myHashMap::get)
. I've read from 😒tackoverflow: that Kotlin does not support method reference on objects. How to convert to Kotlin?igor.wojda
07/09/2019, 8:32 AMfun main(args: Array<String>) {
val classFooMethodReference = Foo.Companion::doSth
val companionFooMethodReference = Foo::companion::classdoSth
val foo = Foo()
val instanceFooMethodReference = foo::doSth
val objectBarMethodReference = Bar::doSth
}
class Foo() {
companion object {
fun doSth() {
}
}
fun doSth() {
}
}
object Bar {
fun doSth() {
}
}
ValV
07/09/2019, 9:15 AMilya.gorbunov
07/09/2019, 2:21 PMigor.wojda
07/10/2019, 10:06 AMValV
07/10/2019, 10:09 AMilya.gorbunov
07/10/2019, 11:09 AMValV
07/10/2019, 11:52 PM