mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
static imports: don't compare with expected type when it depends on unresolved reference (IDEA-163072)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// "Import static method 'java.util.stream.Collectors.toList'" "true"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
|
||||
public class X {
|
||||
|
||||
{
|
||||
System.out.println(Stream.of(123, 456)
|
||||
.map(i -> i + 1)
|
||||
.collect(toList()));
|
||||
}
|
||||
}
|
||||
|
||||
class Y {
|
||||
private static void toList() {}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// "Import static method 'java.util.stream.Collectors.toList'" "true"
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class X {
|
||||
|
||||
{
|
||||
System.out.println(Stream.of(123, 456)
|
||||
.map(i -> i + 1)
|
||||
.collect(toLi<caret>st()));
|
||||
}
|
||||
}
|
||||
|
||||
class Y {
|
||||
private static void toList() {}
|
||||
}
|
||||
Reference in New Issue
Block a user