Say I have two traits (A and B) and a class C which mixes them in and implements their methods:
trait A { def foo } trait B { def bar } class C extends A with B { def foo = "Foo" def bar = "Bar" } Is there any way in Scala to specify that the class that extends trait B must extend trait A and then use the implemented method of trait A's defined method in trait B?
So that B could call this.foo() and access the value that has been returned by C's implementation?