mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
defer assignment: choose anchor from same code block
EA-48621 - assert: CompositeElement.addChild
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Defer assignment to 'i' using temp variable" "true"
|
||||
class a {
|
||||
{
|
||||
final int i;
|
||||
int i1;
|
||||
if (true) i1 = 0;
|
||||
if (true) i1 = 0;
|
||||
i = i1;
|
||||
{if (false);}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Defer assignment to 'i' using temp variable" "true"
|
||||
class a {
|
||||
{
|
||||
final int i;
|
||||
if (true) i = 0;
|
||||
if (true) <caret>i = 0;
|
||||
{if (false);}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user