java completion: sort/filter suggestions after :: by their matching to the expected type (IDEA-166673)

GitOrigin-RevId: adaefc912e115826280976b23adee38483ca1f71
This commit is contained in:
Peter Gromov
2020-06-17 17:01:52 +03:00
committed by intellij-monorepo-bot
parent e3489f3445
commit b9525d143e
15 changed files with 131 additions and 115 deletions
@@ -1,7 +1,7 @@
import java.util.*;
class Test {
void aaa(Test p) { return 1; }
int aaa(Test p) { return 1; }
void test() {
Comparator<Test> r2 = Test::<caret>
}
@@ -1,8 +1,8 @@
import java.util.*;
class Test {
void aaa(Test p) { return 1; }
int aaa(Test p) { return 1; }
void test() {
Comparator<Test> r2 = Test::test;
Comparator<Test> r2 = Test::aaa;<caret>
}
}
@@ -9,6 +9,6 @@ class Bar {
class Test88 {
void foo(Foo9 foo) {
foo(Bar::new<caret>);
foo(Bar::new);<caret>
}
}
@@ -8,6 +8,6 @@ class Test {
}
{
I i = Test::aa
I i = Test::aa;<caret>
}
}
@@ -0,0 +1,9 @@
class NewCompletion {
private static void vdf(java.util.function.Supplier<java.util.ArrayList<Integer>> supplier) {
}
public static void main(String[] args) {
vdf(java.util.ArrayList::<caret>);
}
}