IDEA-186381 bad code green: variable might already have been assigned

Fixed parentheses handling on the left-side of assignment and in unary operations
Fixed error message priority
This commit is contained in:
Tagir Valeev
2018-02-09 12:45:18 +07:00
parent fdf8162520
commit 63231c630d
3 changed files with 24 additions and 10 deletions
@@ -130,4 +130,16 @@ class T29a {
if (j > 0) break;
} while (b == 1);
}
}
}
class TX {
private final int i;
private final int j;
private final int k;
TX() {
(i) = 1;
(<error descr="Variable 'i' might already have been assigned to">i</error>) = 1;
(j) = 1;
(<error descr="Variable 'j' might already have been assigned to">j</error>)++;
(<error descr="Variable 'k' might not have been initialized">k</error>)++;
}
}