summaryrefslogblamecommitdiff
path: root/test/files/pos/bug675.scala
blob: 51f56920b5372a947ae8e82073f557f4cb6922fa (plain) (tree)


















                                        
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 Application {
  val t = new T{}
  val x = new t.X{}
  Console.println(x.foo)
}