var result = "" object A { val prop = test() fun test(): String { result += "OK" return result } } fun box(): String { if (A.prop != "OK") return "fail ${A.prop}" return result }