mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 11:50:57 +07:00
20 lines
412 B
Java
20 lines
412 B
Java
import java.util.List;
|
|
class Test {
|
|
|
|
interface I<T> {
|
|
T foo();
|
|
}
|
|
|
|
static class Foo<X> {
|
|
static <T> Foo<T> foo() { return null; }
|
|
}
|
|
|
|
<T, S extends Foo<T>> List<T> meth(I<S> p) { return null; }
|
|
|
|
void test() {
|
|
List<?> l1 = meth(Foo::new);
|
|
List<?> l2 = meth(Foo::foo);
|
|
List<String> l3 = meth(Foo::new);
|
|
List<String> l4 = meth(Foo::foo);
|
|
}
|
|
} |