blob: 914c1b27ab31c685ade63055d264a78576454d5d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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);
}
|