class Foo { var x: Int = 0 fun test() { x = 1 } }