class A { companion object { class B { } } fun bar() { foo() } fun foo() { } }