mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
subtyping constraint: apply capture conversion for captured wildcard bound according to the direct supertype of parameterized type specification
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
void f(List<? extends I<?>> list) {
|
||||
foo(list.get(0));
|
||||
}
|
||||
|
||||
private <T> T foo(I<T> id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
interface I<Z> {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user