mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
23 lines
329 B
Java
23 lines
329 B
Java
// "Replace lambda with method reference" "true-preview"
|
|
interface I {
|
|
String foo(Foo i);
|
|
}
|
|
|
|
class Foo {
|
|
public String foo() {
|
|
return null;
|
|
}
|
|
|
|
String foo(int i) {
|
|
return null;
|
|
}
|
|
|
|
String foo(Foo foo) {
|
|
return null;
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
I i = (foo) -> foo.f<caret>oo();
|
|
}
|
|
}
|