diff options
Diffstat (limited to 'tests/pureJava/LocalInners2.java')
-rw-r--r-- | tests/pureJava/LocalInners2.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pureJava/LocalInners2.java b/tests/pureJava/LocalInners2.java new file mode 100644 index 000000000..0bee0adef --- /dev/null +++ b/tests/pureJava/LocalInners2.java @@ -0,0 +1,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) {} +} |