Why outer class cannot see private members of inner class?

Probably because the JVM actually can’t and Java generates appropriate synthetic accessors. Kotlin just tries to limit the idea in the first place.

1 Like