Why can I say that a type field has the type of a class with another class mixed into it (when only traits can be mixed in a class) ?
Example:
scala> class A
defined class A
scala> class B extends A
defined class B
Mixing in B to A is not allowed:
scala> new A with B
<console>:10: error: class B needs to be a trait to be mixed in
new A with B
^
But this is possible:
scala> class E {type T = A with B}
defined class E
scala> new E
res1: E = E@1f2bc83