aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/LocalInners2.java
blob: 0bee0adef8b0096f40e6b0c89a5f11ba9e412891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class LocalInners2 {
    public static void main(final String[] args) {
        class Local {
	    class Inner0 extends Local {
	    }
	    class Inner1 extends Local {
		int arglen = args.length;
	    }
	}
	new Local().new Inner0();
	new Local().new Inner1();
	foo(new Local().new Inner1().arglen);
    }

    static void foo(int i) {}
}