18 lines
210 B
Java
Executable File
18 lines
210 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 A<Integer>(); }
|
|
}
|
|
}
|
|
|
|
class C<a> extends B<A<a>> {}
|
|
|
|
|
|
|