Open stephane-archer opened 22 hours ago
void foo() { var i = 0; i = i + 1; }
there is no warning but it should indicate The value of the local variable 'i' isn't used. Try removing the variable or using it. because it's used to update itself and i is not used elsewhere
The value of the local variable 'i' isn't used. Try removing the variable or using it.
i
while withi += 1; it act correctly
i += 1;
Thanks!
(I changed the title a bit to reflect that this is about the UNUSED_LOCAL_VARIABLE warning.)
UNUSED_LOCAL_VARIABLE
Thanks for helping me making a good issue :)
there is no warning but it should indicate
The value of the local variable 'i' isn't used. Try removing the variable or using it.
because it's used to update itself andi
is not used elsewherewhile with
i += 1;
it act correctly