We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class NestedForLoopTest { static void Test(int sizeX, int sizeY, int[] array) { for (int y = 0; y < sizeY; y++) { for (int x = 0; x < sizeX; x++) array[y * sizeX + x] = 0; } for (int y = 0; y < sizeY; y++) { for (int x = 0; x < sizeX; x++) array[y * sizeX + x] = 1; } } }
internal class NestedForLoopTest { private static void Test(int sizeX, int sizeY, int[] array) { for (int y = 0; y < sizeY; y++) { for (int x = 0; x < sizeX; x++) { array[y * sizeX + x] = 0; } } for (int i = 0; i < sizeY; i++) { // Missing variable declaration for (i = 0; i < sizeX; i++) { array[i * sizeX + i] = 1; } } } }
Tested with version at commit 6a84a81
The text was updated successfully, but these errors were encountered:
I guess the nested loop should not re-use the i var but instead introduce a new one?
i
Sorry, something went wrong.
This is a regression from previous versions. I believe it was introduced in #3243
58e993d
No branches or pull requests
Input code
Erroneous output
Details
Tested with version at commit 6a84a81
The text was updated successfully, but these errors were encountered: