class A fun foo(a: A) { a[0] += 1 }