#Bug
Should not trigger when loop variable used in loop &/or non-standard increment.
public void Test()
{
int[] ints = {1, 2, 3, 4, 5, 6, 7, 8};
for (int j = 0; j < ints.Length; j += 2)
{
int a = ints[j];
int b = ints[j + 1];
}
}
Current output after fix applied (generates uncompilable code.):
public void Test()
{
int[] ints = {1, 2, 3, 4, 5, 6, 7, 8};
foreach (var a in ints)
{
int b = ints[j + 1];
}
}
#Bug
Should not trigger when loop variable used in loop &/or non-standard increment.
Current output after fix applied (generates uncompilable code.):