Open
Description
FP reported in the community forum.
Repro steps
public class Repro
{
public int Id { get; set; }
public bool Flag { get; set; }
public static void Test(List<Repro> aList)
{
List<int> collectionOfIds = new List<int>();
aList.FindAll(x => x.Flag).ForEach(x => collectionOfIds.Add(x.Id));
collectionOfIds.Clear(); // FP S4158
if (collectionOfIds.Count > 0) // FP S2583
{ }
}
}
Activity