aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test2/Anon.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test2/Anon.java')
-rw-r--r--src/test/test2/Anon.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/test2/Anon.java b/src/test/test2/Anon.java
index a6ccd8f0..56223436 100644
--- a/src/test/test2/Anon.java
+++ b/src/test/test2/Anon.java
@@ -4,4 +4,15 @@ public class Anon {
public Object make() {
return new Object() { int k; };
}
+
+ public static class Anon2 {
+ Object obj;
+ public Anon2() {
+ obj = new Object() { int k; };
+ }
+ }
+
+ public static class Anon3 {
+ public static Object sobj = new Object() { int p; };
+ }
}