aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/abstract-override.scala
blob: 4b8c3ace16c5d9b43dbe840854d4d496a9afc50a (plain) (blame)
1
2
3
4
5
6
7
8
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)
  }
}