Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/trivialFunctionalExpressionUsage/beforeNameConflict.java
Tagir Valeev b3325f5116 Preserve code block when variable from lambda body conflicts with later declaration
Fixes IDEA-196540 TrivialFunctionalExpressionUsageInspection produces code with variable redefinitions
2018-08-01 20:52:34 +07:00

13 lines
200 B
Java

// "Replace call with method body" "true"
class Test {
void test() {
new Runnable() {
@Override
public void run() {
int a =6;
}
}.r<caret>un();
int a =5;
}
}