last resource delete from try-with-resources(IDEA-145803)

ensure that psi remain correct, automatically resolve conflict with variables declared after the try-with-resources stmt
This commit is contained in:
Anna Kozlova
2018-02-01 13:40:05 +03:00
parent d4f64ce91a
commit d138577fe1
28 changed files with 162 additions and 131 deletions
@@ -1,7 +1,7 @@
class Test {
void m() throws Exception {
try (AutoCloseable r2 = null) {
System.out.println(null + ", " + r2);
}
System.out.println(null + ", " + r2);
}
}
}