mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
12 lines
285 B
Java
12 lines
285 B
Java
// "Replace with '(b ? foo(1) : foo(2)) != null ?:'" "true-preview"
|
|
class A {
|
|
void bar(String s) {}
|
|
|
|
void foo(boolean b){
|
|
bar((b ? foo(1) : foo(2)) != null ? b ? foo(1) : foo(2) : null);
|
|
}
|
|
|
|
static String foo(int x) {
|
|
return x > 0 ? "pos" : x < 0 ? "neg" : null;
|
|
}
|
|
} |