mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
method reference: registry option to skip unsound capture conversion specified in the spec but ignored by the javac, to be changed in the next spec version (IDEA-171488)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
abstract class View {
|
||||
{
|
||||
foo(View::returnType).orElse(void.class);
|
||||
}
|
||||
|
||||
abstract <H> Optional<H> foo(Function<View, H> f);
|
||||
|
||||
public Class<?> returnType() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user