class Foo { private class Bar { fun call() {} } private fun foo() { Bar().call() } }