blob: dd9b2be4faf80b7373f70f88a91e9b595de0a22e (
plain) (
blame)
1
2
3
4
5
6
7
8
|
trait T { def foo: Int = 3 }
trait T1 extends T { override def foo = super.foo }
trait T2 extends T { override def foo = super.foo }
object Test extends T2 with T1 {
def main(args: Array[String]) = {
assert(foo == 3)
}
}
|