class Foo { var x = "" get() = field + "!" set(value) { field = value + "!" } }