class Foo { companion object } fun test() { consume(Foo) } private fun consume(obj: Any) {}