[java-refactoring] Inline variable: fix CompilationError test; support inline at ref in the presence of compilation error

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

GitOrigin-RevId: 6e443a44c4ccf8a65d10f4f83665cfe2641282b0
This commit is contained in:
Tagir Valeev
2023-11-28 11:33:48 +01:00
committed by intellij-monorepo-bot
parent 0679a1a9f4
commit fd00898d32
6 changed files with 37 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
public class CompilationError {
public static void main(String[] args) {
int inlineMe = 3; // inline
int dd = 4 + <caret>inlineMe;
"Error".
}
}