summaryrefslogblamecommitdiff
path: root/test/files/pos/michel2.scala
blob: 914c1b27ab31c685ade63055d264a78576454d5d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

             
                          


                   
                                 



                                     
                               



 
object Test {

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

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

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