wei
07/25/2018, 9:32 PMA
that has a static class as a member:
class A {
...
static class B {...}
}
I see code in java that just do A.B
to access class B. However, I cannot do the same thing in my kotlin code (intellij marks B
as red when I do A.B
.
My use case: I have an object that I want to cast to B
, like o is A.B
.