testdata for IDEA-124961 according to 1.8.0_20-ea

This commit is contained in:
Anna Kozlova
2014-06-27 16:23:25 +02:00
parent 1cc9209fea
commit 3fd69c306f
2 changed files with 20 additions and 0 deletions

View File

@@ -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;}
}