aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t675.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t675.scala')
-rw-r--r--tests/untried/pos/t675.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/untried/pos/t675.scala b/tests/untried/pos/t675.scala
new file mode 100644
index 000000000..905d29d44
--- /dev/null
+++ b/tests/untried/pos/t675.scala
@@ -0,0 +1,17 @@
+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)
+}