diff options
Diffstat (limited to 'test/files/pos/t675.scala')
-rw-r--r-- | test/files/pos/t675.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/pos/t675.scala b/test/files/pos/t675.scala new file mode 100644 index 0000000000..c736d9dc05 --- /dev/null +++ b/test/files/pos/t675.scala @@ -0,0 +1,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) +} + + |