blob: c736d9dc0581e6207c19779655d6d7d22eeaeeb7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package test;
trait T {
abstract class Foo;
private object FOO_0 extends Foo {
Console.println("FOO_0 initialized")
}
trait X {
def foo : Foo = FOO_0;
}
}
object Test extends App {
val t = new T{}
val x = new t.X{}
Console.println(x.foo)
}
|