Consider the code below:
trait A {
def work = { "x" }
}
trait B {
def work = { 1 }
}
class C extends A with B {
override def work = super[A].work
}
Class C
won't compile in scala 2.10, because of "overriding method work in trait A of type => String; method work has incompatible type".
How to choose one specific method?