JavaCompilerCore/examples/pl_usecases/Usecase_MUBTest5.jav
2013-10-18 13:33:46 +02:00

13 lines
199 B
Java
Executable File

class A<a> { }
class B<a> extends A<a> {
f(Boolean x) {
if (x) {
return new B<a>(); }
else {
return new C<Integer>(); }
}
}
class C<a> extends B<A<a>> {}