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:
Anna Kozlova
2014-10-17 21:03:20 +02:00
parent ac4c65c0e5
commit 524c5a4c4d
3 changed files with 21 additions and 1 deletions
@@ -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());
}
}