mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
new inference: functional parameterization should proceed to non-wildcard parameterization with partly ready parameterization, new spec (IDEA-131417)
(cherry picked from commit e7cf17fa45740d7f233ce426d9d78a3580399d8e)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import java.util.function.Function;
|
||||
|
||||
class Test {
|
||||
static void foo(Function<? super String, ? extends Number> f) {}
|
||||
|
||||
static void test() {
|
||||
foo((Object o) -> o.hashCode());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user