aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/PrivateSuperInnerAccess.java
blob: 95acf1308047b8b1b3b031f30ae4e82c55b03bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public class PrivateSuperInnerAccess {
    public static void main(String argv[]) {
        Outer.C c = new Outer().new C();
	c.foo();
    }
}

class Outer {
    class B {
        private int x = 5;
    }
    class C extends B {
        int foo() {
            return super.x+1;
        }
    }
}