mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
testdata for IDEA-124961
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
|
||||
class Bug04 {
|
||||
|
||||
private static final List<X> list = new ArrayList<>();
|
||||
|
||||
private static List<? extends CharSequence> list() {
|
||||
return list.stream().map(x -> x.getList().get(0)).collect(toList());
|
||||
}
|
||||
|
||||
public static void main(String... args) {
|
||||
System.out.println(list());
|
||||
}
|
||||
|
||||
private static class X {
|
||||
|
||||
private final List<? extends CharSequence> list = Collections.singletonList("x");
|
||||
|
||||
public List<? extends CharSequence> getList() {
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user