mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
new inference: open/close capture when method reference is resolved (IDEA-128712)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import java.util.Collection;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
abstract class Foo {
|
||||
{
|
||||
map(Foo::bar);
|
||||
map(a -> Foo.bar(a));
|
||||
}
|
||||
|
||||
<R> Stream<R> map(Function<Class<?>, ? extends R> mapper) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
private static <T> Collection<T> bar(Class<T> baseClass) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user