package source class X { companion object { fun foo() { other() bar++ } var bar = 1 fun other() { foo() } } fun f() { bar++ } }