lambda: check assignable takes into account wildcards (IDEA-108195)

This commit is contained in:
Anna Kozlova
2013-05-31 20:31:24 +04:00
parent 05ea097a2d
commit 6269653b12
3 changed files with 14 additions and 1 deletions
@@ -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);
}
}