class A { companion object { fun ok() = "OK" } } fun box() = (A.Companion::ok).let { it() }