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