mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 10:51:25 +07:00
extend lambda valid context: conditional expressions (IDEA-91140)
This commit is contained in:
+9
@@ -15,4 +15,13 @@ class Test {
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user