JavaCompilerCore/examples/hoti/VererbProb.jav

23 lines
248 B
Plaintext
Raw Permalink Normal View History

2013-10-18 11:33:46 +00:00
public class M1{}
public class M2 extends M1 {}
public class Test {
public doSomething(Boolean big){
M2 ret;
ret1;
ret2;
ret1=new M2();
ret2=new M2();
if(big){
ret=ret1;
}else{
ret=ret2;
}
return(ret);
}
}