extend lambda valid context: conditional expressions (IDEA-91140)

This commit is contained in:
Anna Kozlova
2012-09-06 19:10:16 +04:00
parent a8ea5d4deb
commit 262fcbafad
2 changed files with 11 additions and 1 deletions
@@ -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;
}
}