mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-11-13 00:33:59 +07:00
overload resolution: clear inference errors from nested calls when top level expression is abadoned as non-applicable (IDEA-150718; IDEA-153222)
This commit is contained in:
1 parent
cf20da777d
commit
034012ae4e
3 files changed
+58
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
import java.util.*;
|
||||
|
||||
class MyTest {
|
||||
|
||||
{
|
||||
Set<Integer> set = new TreeSet<>(Comparator.comparing(b -> ""));
|
||||
Set<Integer> set1 = new TreeSet<>(Comparator.comparing(b -> b != null ? "" : ""));
|
||||
}
|
||||
|
||||
|
||||
void f(List<String> l) {
|
||||
setCategories(l.stream().toArray(size -> new String[size]));
|
||||
setCategories(l.stream().toArray(String[]::new));
|
||||
}
|
||||
|
||||
private void setCategories(String... strings) {}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user