for java completion, choose method with most specific return type among same-signature candidates (IDEA-136174)

This commit is contained in:
peter
2015-10-26 12:39:50 +01:00
parent 1858564abc
commit ba4cd74056
4 changed files with 105 additions and 42 deletions
@@ -0,0 +1,18 @@
interface Root1 {
A get();
}
interface Root2 extends Root1 {
B get();
}
interface Child extends Root1, Root2 {
}
public class Test {
public void test(Child child) {
child.get<caret>x
}
}
interface A {}
interface B extends A {}