class A { fun foo() = "OK" } fun box(): String { val x = A::foo return A().x() }