summaryrefslogtreecommitdiff
path: root/test/files/jvm/nest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/nest.java')
-rw-r--r--test/files/jvm/nest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/files/jvm/nest.java b/test/files/jvm/nest.java
index 581eaa4972..3f6f0bebbd 100644
--- a/test/files/jvm/nest.java
+++ b/test/files/jvm/nest.java
@@ -14,4 +14,25 @@ public class nest {
}
}
}
+
+
+ String name = "Outer name";
+
+ public class Inn {
+ int x;
+
+ public Inn(int x) {
+ this.x = x;
+ }
+
+ public void doSomething() {
+ System.out.println("Inn " + name + " x: " + x);
+ }
+ }
+
+ protected class ProtInn {
+ public void doSomething() {
+ System.out.println("ProtInn " + name);
+ }
+ }
}