DFA: branch-specific reporting (IDEA-203016)

This commit is contained in:
Tagir Valeev
2018-11-27 16:57:29 +07:00
parent 3b985e2cfa
commit 01b72f856a
15 changed files with 308 additions and 149 deletions
@@ -1,8 +1,12 @@
// "Surround with 'if ((b ? null : "foo") != null)'" "true"
// "Surround with 'if ((b ? foo(1) : foo(2)) != null)'" "true"
class A {
void bar(String s) {}
void foo(boolean b){
bar(b ? null<caret> : "foo");
bar(b ? foo(1)<caret> : foo(2));
}
static String foo(int x) {
return x > 0 ? "pos" : x < 0 ? "neg" : null;
}
}