mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-19 13:18:46 +07:00
481bc252f3
(cherry picked from commit d2cbf3f2833104c3a0381059b0d6ef8ac0b3c94c)
15 lines
327 B
Java
15 lines
327 B
Java
import java.util.*;
|
|
|
|
interface A2{};
|
|
interface B extends A2{};
|
|
|
|
class GenericTest {
|
|
public static <M extends V, V> List<V> convert(List<M> list){
|
|
return new ArrayList<V>();
|
|
}
|
|
public static void test(){
|
|
// it prompts convert returns List<B>
|
|
List<A2> as = convert(new ArrayList<B>());
|
|
}
|
|
}
|