summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/michel2.scala
blob: e6976b0f4010bdd70daf34d8b29ef27f6def897d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
object Test {

  trait A extends Object {
    def f : Int = 1
  }

  class B extends Object with A {
    override def f : Int = super[A].f
  }

  def main(args: Array[String]) =
    System.out.println(new B().f);
}