Field can be local: added support for nested and local classes (IDEA-206647)

This commit is contained in:
Artemiy Sartakov
2019-02-07 17:25:25 +07:00
parent 164e3869e1
commit 043c2d563e
12 changed files with 161 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
// "Convert field to local variable in method 'test'" "true"
class Foo {
void test() {
class Bar {
void test() {
int x = 2; // could be local
System.out.println(x);
}
}
}
}