overload resolution: force substitutor calculation (IDEA-128174)

This commit is contained in:
Anna Kozlova
2014-08-04 19:00:49 +02:00
parent 9fa9bfd846
commit 438e9160a0
5 changed files with 38 additions and 5 deletions

View File

@@ -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> {}
}