Files
openide/java/java-tests/testData/refactoring/inlineLocal/CompilationError.java.after
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

11 lines
174 B
Plaintext

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