JavaCompilerCore/examples/pl_usecases/Usecase_MUBTest1.jav

18 lines
210 B
Plaintext
Raw Permalink 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 A<Integer>(); }
}
}
class C<a> extends B<A<a>> {}