Files
Tagir Valeev 8a7d1000b1 MoveIntoIfBranchesAction: conflict detection improved
GitOrigin-RevId: bf8c3d050e5cfa51e71d6e34921ab2c2036b8e5e
2020-06-15 10:59:08 +03:00

10 lines
228 B
Java

// "Move up into 'if' statement branches" "false"
class X {
void test(int x) {
if (x > 0) System.out.println(">0"); else {
int y = 3;
}
<selection>{int y = x * 2;
System.out.println(y);}</selection>
}
}