class A(var property: Int) fun foo(a: A) { a.property += 10 }