Why Kotlin doesn't allow creation of public instances of private inner classes unlike Java?
Works in Java:
public class Test {
public A a = new A();
private class A {
}
}
Doesn't work in Kotlin (A class has to be public):
class Test {
var a = A()
// ^
// 'public' property exposes its private type 'A'
private inner class A
}