mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +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:
@@ -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