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

13 lines
205 B
Java
Executable File

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