I’ve got a java class `A` that has a static class ...
# announcements
w
I’ve got a java class
A
that has a static class as a member:
Copy code
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
.