mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IDEA-155383 Auto-complete for method references should use the type where the method is declared
This commit is contained in:
+16
@@ -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>
|
||||
}
|
||||
|
||||
}
|
||||
+16
@@ -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>)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user