mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-17 18:50:49 +07:00
3188589850
(cherry picked from commit ff73c519f10ec947b86832a0c4ce5d6ee9b9e4c3)
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());
|
|
}
|
|
}
|
|
|