mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-28 09:20:01 +07:00
Inlining action: show conflict if replacement variable changes before last read of original variable (IDEA-204546)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
public class AssignmentAndReassignmentInLoop {
|
||||
|
||||
public void test() {
|
||||
for(int i = 0; i < 3; i++) {
|
||||
String replacement = "foo";
|
||||
String <caret>original = replacement;
|
||||
|
||||
replacement = "bar";
|
||||
|
||||
System.out.println(original);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user