-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Should not warn dereferencing collection after foreach #30562
Copy link
Copy link
Closed
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersConcept-Diagnostic ClarityThe issues deals with the ease of understanding of errors and warnings.The issues deals with the ease of understanding of errors and warnings.Feature - Nullable Reference TypesNullable Reference TypesNullable Reference TypesTestTest failures in roslyn-CITest failures in roslyn-CI
Milestone
Metadata
Metadata
Assignees
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersConcept-Diagnostic ClarityThe issues deals with the ease of understanding of errors and warnings.The issues deals with the ease of understanding of errors and warnings.Feature - Nullable Reference TypesNullable Reference TypesNullable Reference TypesTestTest failures in roslyn-CITest failures in roslyn-CI
Type
Fields
Give feedbackNo fields configured for issues without a type.
The second
foreachin each case should not produce a warning since the collection cannot be null after the first dereference.