package abc private class A { companion object { const val bar = 4 } } private fun test(a: A) { val bar = 42 { A.bar }() }