summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/protectedFieldRefInInner/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pureJava/protectedFieldRefInInner/Main.java')
-rw-r--r--tests/pureJava/protectedFieldRefInInner/Main.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pureJava/protectedFieldRefInInner/Main.java b/tests/pureJava/protectedFieldRefInInner/Main.java
new file mode 100644
index 000000000..c321d24f6
--- /dev/null
+++ b/tests/pureJava/protectedFieldRefInInner/Main.java
@@ -0,0 +1,11 @@
+package protectedFieldRefInInner;
+
+public class Main extends protectedFieldRefInInner.p1.C {
+ private int y = 4;
+ class Inner {
+ int foo() { return x = x + y; }
+ }
+ public static void main(String[] args) {
+ new Main().new Inner().foo();
+ }
+}