introduce field: resolve conflicts with constructor params (IDEA-91633)

This commit is contained in:
Anna Kozlova
2018-06-22 16:02:47 +03:00
parent 12698d6683
commit 14e65418b5
4 changed files with 72 additions and 39 deletions
@@ -0,0 +1,11 @@
class Foo {
String foo = "foo";
public final String fooBar;
public Foo(int foo) {
fooBar = this.foo.subString(1);
}
void bar() {
}
}
@@ -0,0 +1,9 @@
class Foo {
String foo = "foo";
public Foo(int foo) {
}
void bar() {
String fo<caret>oBar = foo.subString(1);
}
}