mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
22 lines
379 B
Java
22 lines
379 B
Java
import java.util.*;
|
|
class Test {
|
|
|
|
interface I<T> {
|
|
T foo();
|
|
}
|
|
class Inner<T> { }
|
|
|
|
|
|
<M1 extends List<?>> Inner<M1> staticFactory() {
|
|
return null;
|
|
}
|
|
|
|
<M2 extends List<?>> void foo(I<M2> coll,
|
|
Inner<M2> assertion) { }
|
|
|
|
void test(I<List<List<Integer>>> coll) {
|
|
foo(coll, staticFactory());
|
|
}
|
|
}
|
|
|