new inference: postpone unresolved variables in favor to variables with proper equals bound

This commit is contained in:
Anna.Kozlova
2016-10-11 10:27:29 +02:00
parent 80c888528e
commit 41c2429966
3 changed files with 21 additions and 0 deletions
@@ -0,0 +1,13 @@
import java.util.Comparator;
import java.util.function.Supplier;
class Test {
void f(Supplier<Comparable> m) {
g(m, Comparator.naturalOrder());
}
<K> void g(Supplier<K> f, Comparator<K> c) {}
}