Skip to content

ForClosureAnalyzer threw an exception of type 'System.NullReferenceException' #2

@MindGirl

Description

@MindGirl

If the variable declaration is outside the for statement, the Declaration property is null.

Sample code to reproduce the issue:

            int index = 0;
            for (index = 0; index < 10; index++)
            {
                Console.WriteLine(index);
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions