allow functional expressions in nested conditional expressions (IDEA-164828)

This commit is contained in:
Anna.Kozlova
2016-12-01 16:52:02 +01:00
parent a8800a9a04
commit 936294e05d
2 changed files with 17 additions and 3 deletions
@@ -27,4 +27,10 @@ class Test1 {
II ik2 = (II)(ik1 = (b ? (s)-> true : (s)->false));
(b ? <error descr="Lambda expression not expected here">(s) -> true</error> : ik)._("");
}
}
class Test2 {
void f() {
final Runnable one=true ? null : true ? () -> {} : () -> {};
}
}