diff options
Diffstat (limited to 'test/pos/localmodules.scala')
-rw-r--r-- | test/pos/localmodules.scala | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/pos/localmodules.scala b/test/pos/localmodules.scala new file mode 100644 index 0000000000..8ed34f455a --- /dev/null +++ b/test/pos/localmodules.scala @@ -0,0 +1,22 @@ +package test; + +object main { + + class a { + + object b { + + trait c {} + def foo(x: c): c = { System.out.println("foo(" + x + ")"); x } + + } + + def bar(x: b.c): a.this.b.c = { b.foo(x); x } + } + + def main(args: Array[String]) = { + val aa = new a; + val xx: aa.b.c = null; + System.out.println(aa.bar(xx)); + } +} |