mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 19:29:30 +07:00
lambda: check assignable takes into account wildcards (IDEA-108195)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class Demo {
|
||||
|
||||
Function<Supplier<Double>, ? extends Supplier<Double>> mapper2 = (sa) -> () -> sa.get() + 1.0;
|
||||
|
||||
interface Supplier<T> {
|
||||
public T get();
|
||||
}
|
||||
|
||||
interface Function<T, R> {
|
||||
public R apply(T t);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user