mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
method refs: missed super class substitution (IDEA-126969)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class IDEA126969 {
|
||||
void foo(final Stream<List<Integer>> stream) {
|
||||
|
||||
stream.flatMap(List::stream)
|
||||
.forEach(i -> System.out.println(i.floatValue()));
|
||||
|
||||
stream.flatMap(Collection::stream)
|
||||
.forEach(i -> System.out.println(i.floatValue()));
|
||||
|
||||
}
|
||||
}
|
||||
+4
@@ -273,6 +273,10 @@ public class NewMethodRefHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA126969() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user