blob: c1ce8372513404fe667527aa3f0583d2091a05eb (
plain) (
blame)
1
2
3
4
5
6
7
8
|
trait T { def foo: Int }
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)
}
}
|