mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:38:51 +07:00
18 lines
185 B
Java
18 lines
185 B
Java
interface I {
|
|
void f();
|
|
}
|
|
|
|
class B implements I {
|
|
@Override
|
|
public void f() {
|
|
|
|
}
|
|
}
|
|
|
|
class MyTest {
|
|
void m(I i) {}
|
|
|
|
void n(int ik) {
|
|
m(ik > 0 ? () -> {} : new B());
|
|
}
|
|
} |