Should not warn dereferencing collection after foreach #30562
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Concept-Diagnostic Clarity
The issues deals with the ease of understanding of errors and warnings.
New Language Feature - Nullable Reference Types
Nullable Reference Types
Test
Test failures in roslyn-CI
Milestone
The second
foreach
in each case should not produce a warning since the collection cannot be null after the first dereference.The text was updated successfully, but these errors were encountered: