Inline inner: assignments to local vars and params in constructor body fixed (IDEA-39285)

This commit is contained in:
anna
2010-02-01 17:13:32 +03:00
parent f86a7f7f87
commit 3e37ba3466
4 changed files with 45 additions and 11 deletions
@@ -0,0 +1,20 @@
public class WithCtor {
private int myInt = 8;
private String myString = "Sashya";
public WithCtor() {
}
public WithCtor(int anInt, String string) {
int i = 2;
i = 3;
myInt = i + anInt;
int j = 4;
j = 5;
myString = string.substring(j);
}
}
class Usage {
private WithCtor wc1 = new With<caret>Ctor(17, "Sa");
}