mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
allow functional interfaces in conditionals inside assignment or invocation contexts only
This commit is contained in:
+3
-1
@@ -23,6 +23,8 @@ interface II {
|
||||
class Test1 {
|
||||
void bar(boolean b){
|
||||
II ik = b ? (s)-> true : (s)->false;
|
||||
II ik1 = (II)(b ? <error descr="Lambda expression not expected here">(s)-> true</error> : <error descr="Lambda expression not expected here">(s)->false</error>);
|
||||
II ik1 = (II)((b ? <error descr="Lambda expression not expected here">(s)-> true</error> : <error descr="Lambda expression not expected here">(s)->false</error>));
|
||||
II ik2 = (II)(ik1 = (b ? (s)-> true : (s)->false));
|
||||
(b ? <error descr="Lambda expression not expected here">(s) -> true</error> : ik)._("");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user