mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
27 lines
533 B
Java
27 lines
533 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) -> {};
|
|
}
|
|
}
|
|
|
|
interface II {
|
|
boolean _(String s);
|
|
}
|
|
class Test1 {
|
|
void bar(boolean b){
|
|
II ik = b ? (s)-> true : (s)->false;
|
|
}
|
|
} |