mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
overload resolution: force substitutor calculation (IDEA-128174)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
class Test {
|
||||
|
||||
{
|
||||
Matcher<? super List<String>> m = not(empty());
|
||||
}
|
||||
|
||||
static <E> Matcher<Collection<E>> empty() {
|
||||
return null;
|
||||
}
|
||||
|
||||
static <T> Matcher<T> not(Matcher<T> matcher) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static <T> Matcher<T> not(T value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static class Matcher<K> {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user