mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
17 lines
464 B
Java
17 lines
464 B
Java
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
interface Processor<P> {
|
|
void process(P t);
|
|
}
|
|
|
|
class Test {
|
|
void foo(Processor<? super List<String>> p) {
|
|
p.process(Collections.emptyList());
|
|
}
|
|
|
|
void bar(Processor<? extends List<String>> p) {
|
|
p.process<error descr="'process(capture<? extends java.util.List<java.lang.String>>)' in 'Processor' cannot be applied to '(java.util.List<java.lang.Object>)'">(Collections.emptyList())</error>;
|
|
}
|
|
} |