summaryrefslogblamecommitdiff
path: root/test/files/pos/t675.scala
blob: 905d29d44a35dec0e77a97c95a65396b8de7919d (plain) (tree)
1
2
3
4
5
6
7
8
9








                                        
   

 
                         



                        
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)
}