summaryrefslogtreecommitdiff
path: root/test/files/pos/t2377b/Q.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t2377b/Q.java')
-rw-r--r--test/files/pos/t2377b/Q.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t2377b/Q.java b/test/files/pos/t2377b/Q.java
new file mode 100644
index 0000000000..fbf9c776e9
--- /dev/null
+++ b/test/files/pos/t2377b/Q.java
@@ -0,0 +1,13 @@
+public class Q {
+
+ public static class Builder {}
+
+ public static class Inner {
+ 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
+ }
+
+}
+