Accessing static inner class defined in Java, through derived class
I've got some classes defined in java, similar to the code below. I'm trying to access SomeValue through a derived java class, which is allowed in java, but not in kotlin. Is there a way to access the field through the derived class? // java file // ------------------------------------------------- class MyBaseClass { public static final class MyInnerClass { public static int SomeValue = 42; } } final class MyDerivedClass extends MyBaseClass { } // kotlin file // ------------------------------------------------- val baseAccess = MyBaseClass.MyInnerClass.SomeValue; // this compiles val