diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-08-12 22:04:26 +1000 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2016-08-12 14:26:31 -0700 |
commit | 56e4402fc267dcd1957f0aee0c756e88ca569482 (patch) | |
tree | 9fb848898cfb4b11fb9a9fb595a523c10a5e57c3 /test | |
parent | 708dd680b3e28c6344c3f45c2aea09cf1d3b5908 (diff) | |
download | scala-56e4402fc267dcd1957f0aee0c756e88ca569482.tar.gz scala-56e4402fc267dcd1957f0aee0c756e88ca569482.tar.bz2 scala-56e4402fc267dcd1957f0aee0c756e88ca569482.zip |
Java joint compilation: tweak static lookup impl
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t2377b/Q.java | 5 | ||||
-rw-r--r-- | test/files/pos/t2377b/a.scala | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/files/pos/t2377b/Q.java b/test/files/pos/t2377b/Q.java index 1dfdd5991d..fbf9c776e9 100644 --- a/test/files/pos/t2377b/Q.java +++ b/test/files/pos/t2377b/Q.java @@ -3,8 +3,11 @@ public class Q { public static class Builder {} public static class Inner { - public static class Builder {} + public static class Builder { public void innerMethod() {} } public Builder foo() { return new Builder(); } // this line gives an error, that Builder is ambiguous + + public Inner.Builder viaSelect() { return new Builder(); } // this line gives an error, that Builder is ambiguous } } + diff --git a/test/files/pos/t2377b/a.scala b/test/files/pos/t2377b/a.scala index 14be23cfa2..3053841589 100644 --- a/test/files/pos/t2377b/a.scala +++ b/test/files/pos/t2377b/a.scala @@ -1,3 +1,5 @@ object Test { - (new Q.Inner).foo // make sure foo's type is well-formed + (new Q.Inner).foo.innerMethod + (new Q.Inner).viaSelect.innerMethod + } |