How can we obtain method reference from companion ...
# announcements
n
How can we obtain method reference from companion Object . E.g.
Copy code
class Foo {
  companion object {
   fun isOperationChannel(channelName: String): Boolean = channelName == "some thing"
  }
}
Copy code
class SomeClass {
   fun bar() {
    send(Foo::isOperationChannel) <--- doesn't compile
  }
fun send(isSelectedChannel: (channelName: String) -> Boolean) {}
}