old inference: choose child type between types in subtypes constraint (IDEA-118536)

This commit is contained in:
Anna Kozlova
2014-05-30 23:31:13 +04:00
parent d311a4ed09
commit b7ab465ad9
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,10 @@
import java.util.Comparator;
class MyTest {
void foo(final Ordering<Comparable> natural){
compound(natural);
}
<U extends String> Ordering<U> compound(Comparator<? super U> secondaryComparator) { return null; }
}
abstract class Ordering <T> implements Comparator<T> {}