Fix S2589 FP: Deconstructing a tuple in foreach loop #7489
Labels
Area: C#
C# rules related issues.
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Milestone
Description
When deconstructing a tuple in a foreach declaration S2589 is triggered on an unrelated variable.
Repro steps
Expected behavior
S2589 is not triggered
Actual behavior
S2589 is triggered
Related information
The text was updated successfully, but these errors were encountered: