diff options
author | James Iry <jamesiry@gmail.com> | 2013-02-07 16:21:20 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-02-07 16:21:20 -0800 |
commit | 4d618dca20cad709fd3f4b2346374e1c54501e01 (patch) | |
tree | ee9ae1248ef92d02a6a922148445df61f860ef42 /test | |
parent | 033c6635b4ac03b9e6f335a76dabb65f1f0296cd (diff) | |
parent | b579a42ee3c079e9acf53b74085ae01ac6c35f0f (diff) | |
download | scala-4d618dca20cad709fd3f4b2346374e1c54501e01.tar.gz scala-4d618dca20cad709fd3f4b2346374e1c54501e01.tar.bz2 scala-4d618dca20cad709fd3f4b2346374e1c54501e01.zip |
Merge pull request #2069 from retronym/ticket/6888
SI-6888 Loosen criteria for $outer search.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t6888.check | 3 | ||||
-rw-r--r-- | test/files/run/t6888.scala | 19 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/files/run/t6888.check b/test/files/run/t6888.check new file mode 100644 index 0000000000..4e8a2de2db --- /dev/null +++ b/test/files/run/t6888.check @@ -0,0 +1,3 @@ +2 +3 +3 diff --git a/test/files/run/t6888.scala b/test/files/run/t6888.scala new file mode 100644 index 0000000000..0c64cbe5b6 --- /dev/null +++ b/test/files/run/t6888.scala @@ -0,0 +1,19 @@ +class C { + val x = 1 + object $ { + val y = x + x + class abc$ { + def xy = x + y + } + object abc$ { + def xy = x + y + } + } +} + +object Test extends App { + val c = new C() + println(c.$.y) + println(c.$.abc$.xy) + println(new c.$.abc$().xy) +} |