mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
lambda/diamond inference: accept wildcards in lambda return types (IDEA-108955)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
class Demo {
|
||||
public static void main(String[] args) {
|
||||
Function<? super String, ? extends List<String>> mappingFunction = key -> new ArrayList<>();
|
||||
}
|
||||
|
||||
interface Function<T, R> {
|
||||
public R apply(T t);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user