public open class X: A public trait T: A public open class Y: X() public class Z: Y(), T