JavaCompilerCore/examples/pl_usecases/Usecase_MUBTest4.jav

13 lines
205 B
Plaintext
Raw Normal View History

2013-10-18 11:33:46 +00:00
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>> {}