mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
18 lines
800 B
Java
18 lines
800 B
Java
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
interface Q<K> {
|
|
}
|
|
|
|
void f(List list, Set<List<Object>> q) {
|
|
assertThat1(list, <error descr="'assertThat1(java.util.List, java.util.Set<? super java.util.List>)' in 'Test' cannot be applied to '(java.util.List, java.util.Set<java.util.List<java.lang.Object>>)'">q</error>);
|
|
assertThat2(list, q);
|
|
assertThat<error descr="Cannot resolve method 'assertThat(java.util.List, java.util.Set<java.util.List<java.lang.Object>>)'">(list, q)</error>;
|
|
}
|
|
|
|
private static <T> void assertThat1(T actual, Set<? super T> matcher) {}
|
|
private static <T> void assertThat2(T actual, Set<? extends T> matcher) {}
|
|
private static <T> void assertThat(T actual, Set<? super T> matcher) {}
|
|
private static <T> void assertThat(T actual, List<? super T> matcher) {}
|
|
} |