class AAA { fun foo() { x = x + 1 } companion object { var x = 42 } }