mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
16 lines
243 B
Java
16 lines
243 B
Java
// "Replace with expression lambda" "true-preview"
|
|
class Test {
|
|
{
|
|
a(() -> new Object(){});
|
|
}
|
|
|
|
void a(Supplier<Object> s) {}
|
|
void a(AI<Object> s) {}
|
|
|
|
interface AI<K> {
|
|
void m();
|
|
}
|
|
interface Supplier<T> {
|
|
T get();
|
|
}
|
|
} |