resolve conflicting names when rename to 'ignored' (IDEA-184092)

This commit is contained in:
Anna Kozlova
2018-06-19 15:00:38 +03:00
parent f2583da268
commit 6a85ff1fb5
4 changed files with 67 additions and 2 deletions
@@ -0,0 +1,27 @@
class Test23 {
void m() throws Exception {
try (FooContext fo<caret>o = new FooContext()) {
try (BarContext ignored = new BarContext()) {
fooBar();
}
}
}
private void fooBar() {
}
private class FooContext implements AutoCloseable {
@Override
public void close() throws Exception {
}
}
private class BarContext implements AutoCloseable{
@Override
public void close() throws Exception {
}
}
}
@@ -0,0 +1,27 @@
class Test23 {
void m() throws Exception {
try (FooContext ig<caret>nored1 = new FooContext()) {
try (BarContext ignored = new BarContext()) {
fooBar();
}
}
}
private void fooBar() {
}
private class FooContext implements AutoCloseable {
@Override
public void close() throws Exception {
}
}
private class BarContext implements AutoCloseable{
@Override
public void close() throws Exception {
}
}
}