open class A : B.BB() { open class AA } open class B : A.AA() { open class BB }