mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
dfa: make state merging result predictable
when removing a!=b and a!=c && b==c, don't restore a!=c
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
class Some {
|
||||
void foo(String[] args) {
|
||||
boolean b = false;
|
||||
|
||||
if (hashCode() == 2) {
|
||||
b = new File("a").exists();
|
||||
}
|
||||
|
||||
boolean b2 = hashCode() == 4;
|
||||
if (!b2) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (b) {
|
||||
|
||||
}
|
||||
|
||||
if (b) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user