Suppose I have next traits:
trait A { val a: String = "a" } trait B { def a: String = "b" } And I want to mix both of these traits into some class C
class C extends B with A
Compiler doesn't allow me to create such class because I have to override method a
I want to override it using for example only A's implementaion. How can I do this?
EDIT
scala> class C extends B with A { | override val a = super.a | } <console>:10: error: super may be not be used on value a override val a = super.a ^