mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 23:50:57 +07:00
They should not take effect when we are already at branches. Fixes IDEA-292666 False negative for checking definite assignment with ternaries GitOrigin-RevId: 991562f8ec5a9c7b33dfa6a1810bb4ac385c7209
10 lines
268 B
Java
10 lines
268 B
Java
class X {
|
|
void test(int a, int b, int c){
|
|
int x;
|
|
if((a > 0? c < b && (x = b) > 0: (x = c) < 0 || c == b)) {
|
|
System.out.println(x);
|
|
} else {
|
|
System.out.println(<error descr="Variable 'x' might not have been initialized">x</error>);
|
|
}
|
|
}
|
|
} |