class A { companion object { fun toName(): String = "" } } /** * [A.toName.length] */ fun foo() {}