Mirror of the JODE repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jode/jode/test/NestedAnon.java

21 lines
318 B

public class NestedAnon {
public NestedAnon(int maxdepth) {
class NestMyself {
int depth;
///#ifndef JAVAC11
NestMyself son;
///#endif
public NestMyself(int d) {
depth = d;
///#ifndef JAVAC11
if (d > 0)
son = new NestMyself(d-1);
///#endif
}
}
new NestMyself(maxdepth);
}
}