blob: 4b8c3ace16c5d9b43dbe840854d4d496a9afc50a (
plain) (
tree)
|
|
trait T { def foo: Int }
trait T1 extends T { override def foo = super.foo } // error: method foo in trait T is accessed from super.
trait T2 extends T { override def foo = super.foo } // error: method foo in trait T is accessed from super.
object Test extends T2 with T1 {
def main(args: Array[String]) = {
assert(foo == 3)
}
}
|