Files
openide/java/java-tests/testData/refactoring/safeDelete/LastResourceVariableConflictingVar.java
Anna Kozlova d138577fe1 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
2018-02-01 13:40:05 +03:00

10 lines
212 B
Java

class ARM {
void f() {
System.out.println("before");
try (AutoCloseable <caret>r = null) {
int i = 0;
System.out.println("inside");
}
int i = 0;
}
}