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