class Test { var foo: Int = 1 set(value) { bar(field) } fun bar(i: Int) {} }