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