mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
old inference: choose child type between types in subtypes constraint (IDEA-118536)
This commit is contained in:
+10
@@ -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> {}
|
||||
|
||||
Reference in New Issue
Block a user