Files
openide/java/java-tests/testData/refactoring/inlineLocal/CompilationErrorAssignment.java
Tagir Valeev c6fbff80c0 [java-refactoring] Inline variable: improve behavior in the presence of compilation errors
1. Properly forward the AnalysisCancelledException
2. Allow inlining of never overwritten variable in the presence of syntax errors

Fixes IDEA-336815 "Inline variable" misleading error message when compile-errors are present

GitOrigin-RevId: 7510d497fce2dcd4bef38482cfadf162d47cc2c0
2023-11-02 20:34:04 +00:00

12 lines
218 B
Java

public class CompilationError {
public void test() {
public static void main(String[] args) {
int inlineMe = 2;
<caret>inlineMe = 3; // inline
int dd = 4 + inlineMe;
"Error".
}
}
}