mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
deeply eliminate wildcards as they may appear during inference in wildcard's bounds
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
class FunctionReferenceTest {
|
||||
public static void main(String[] args) {
|
||||
List<String> strings = Arrays.asList();
|
||||
|
||||
int sum = strings.stream().mapToInt(CharSequence::length).sum();
|
||||
|
||||
List<? extends CharSequence> sequences = strings;
|
||||
|
||||
sum = sequences.stream().mapToInt(CharSequence::length).sum();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user