mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
forbid lambda in conditional inside cast context
This commit is contained in:
@@ -23,5 +23,6 @@ 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>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user