summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/InnerNameConflictsCf.java
blob: 223c4dd022be93cc3da0b5ea1acb40f83d6e0f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * PR#538
 * Would be useful to add a Cp version
 */

public class InnerNameConflictsCf {
    class Inner {}
    public static void main(String[] args) {
        new Inner(); //ERR: no this
    }
}

class Base {
    static class Base {} //ERR: repeated name
}

class Outer {
    class Inner {
        class Inner2 {
            class Outer {} //ERR: repeated name
            class Inner {} //ERR: repeated name
        }
    }
}