summaryrefslogtreecommitdiff
path: root/test/files/pos/t675.scala
blob: c284c0e202622071107d93b34b00b98a06f648a6 (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)
}