mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
new inference: wildcard parametrization for lambda with formal params: assignability check for complete parametrization only
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
|
||||
<U, V> void foo(Function<U, ? extends V> m) {}
|
||||
|
||||
{
|
||||
foo((String e) -> e.length());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user