dmitry.petrov
class B(val x: String) { companion object { operator fun invoke(x: String) = B(x) } } val x1 = B.invoke("") val x2 = B.Companion("")