mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
testdata for IDEA-124961 according to 1.8.0_20-ea
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import java.util.List;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Test {
|
||||
|
||||
private static void list(List<? extends CharSequence> l) {
|
||||
Stream<? extends CharSequence> str = map(() -> l.get(0));
|
||||
Stream<? extends CharSequence> str1 = map1(() -> l.get(0));
|
||||
Stream<? extends CharSequence> str2 = map1(() -> l.get(0));
|
||||
}
|
||||
|
||||
static <M> Stream<M> map (Supplier<? extends M> mapper) { return null;}
|
||||
static <M> Stream<M> map1(Supplier<? super M> mapper) { return null;}
|
||||
static <M> Stream<M> map2(Supplier<M> mapper) { return null;}
|
||||
}
|
||||
@@ -230,6 +230,10 @@ public class NewLambdaHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIDEA124961() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user