mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
[tests] prepares Java tests for the language level raise
This commit is contained in:
+2
-2
@@ -18,14 +18,14 @@ class Test {
|
||||
}
|
||||
|
||||
interface II {
|
||||
boolean _(String s);
|
||||
boolean m(String s);
|
||||
}
|
||||
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 ik2 = (II)(ik1 = (b ? (s)-> true : (s)->false));
|
||||
(b ? <error descr="Lambda expression not expected here">(s) -> true</error> : ik)._("");
|
||||
(b ? <error descr="Lambda expression not expected here">(s) -> true</error> : ik).m("");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user