Skip to content

Report warning using foreach with a nullable value #23493

@cston

Description

@cston

A warning should be reported using foreach with a nullable value.

class C
{
    static void F(object[]? args)
    {
        foreach (var o in args) // warn
        {
        }
    }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions