mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 14:01:41 +07:00
GitOrigin-RevId: 22a46c15d8900d8a31514846755a013f6a67ad42
12 lines
307 B
Java
12 lines
307 B
Java
// "Replace method call on lambda with lambda body" "true-preview"
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
public class Test {
|
|
public static void main(String[] args) {
|
|
Supplier<String> s = () -> ((Supplier<String>)() -> {
|
|
System.out.println("hello");
|
|
return "foo";
|
|
}).<caret>get();
|
|
}
|
|
} |