I want to inherit two classes (AbstractA and AbstractB) in some trait C:
abstract class AbstractA
trait A extends AbstractA
abstract class AbstractB
trait B extends AbstractB
trait C extends A with B
This code is not compiled:
[error] illegal inheritance; superclass AbstractA is not a subclass of the superclass AbstractB of the mixin trait B