mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
18 lines
272 B
Java
18 lines
272 B
Java
// "Replace with expression lambda" "true-preview"
|
|
class Test {
|
|
{
|
|
a(() -> {
|
|
ret<caret>urn new Object(){};
|
|
});
|
|
}
|
|
|
|
void a(Supplier<Object> s) {}
|
|
void a(AI<Object> s) {}
|
|
|
|
interface AI<K> {
|
|
void m();
|
|
}
|
|
interface Supplier<T> {
|
|
T get();
|
|
}
|
|
} |