mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 09:39:37 +07:00
18 lines
408 B
Java
18 lines
408 B
Java
interface I {
|
|
void m(int x);
|
|
}
|
|
|
|
class Test {
|
|
void foo(Object x) {}
|
|
|
|
void bar() {
|
|
foo(!<error descr="Lambda expression not expected here">(int x)-> {}</error>);
|
|
foo(<error descr="Lambda expression not expected here">(int x)-> { }</error> instanceof Object );
|
|
}
|
|
|
|
I bazz() {
|
|
foo((I)(int x)-> { });
|
|
I o = (I)(int x)-> { };
|
|
return (int x) -> {};
|
|
}
|
|
} |