mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
method references with qualifier with captured wildcard type: retrieve upper bound as it is done for method calls
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
|
||||
final class Test {
|
||||
static <T> T create(Iterable<? extends T> iterable) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static <T> void testError(Iterable<? extends T> iterable) {
|
||||
Runnable r = create(iterable)::toString;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user