mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Preserve code block when variable from lambda body conflicts with later declaration
Fixes IDEA-196540 TrivialFunctionalExpressionUsageInspection produces code with variable redefinitions
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace call with method body" "true"
|
||||
|
||||
class Test {
|
||||
void test() {
|
||||
{
|
||||
int a = 6;
|
||||
}
|
||||
int a =5;
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user