IDEA-155383 Auto-complete for method references should use the type where the method is declared

This commit is contained in:
peter
2016-04-29 22:56:18 +02:00
parent 0e46fda6b8
commit 5131d6fadb
5 changed files with 107 additions and 89 deletions
@@ -0,0 +1,16 @@
import java.util.*;
class MyTest {
public interface Parent {
boolean hasFlag();
}
public interface Child extends Parent {}
public static void main(String[] args) {
List<Child> children = new ArrayList<>();
children.stream().filter(Parent::hasFlag)<caret>
}
}
@@ -0,0 +1,16 @@
import java.util.*;
class MyTest {
public interface Parent {
boolean hasFlag();
}
public interface Child extends Parent {}
public static void main(String[] args) {
List<Child> children = new ArrayList<>();
children.stream().filter(hasF<caret>)
}
}