In this code, Resharper says that "flag = true" can be removed.
bool flag = false;
Action<Action> b = a =>
flag = true;
flag = false;
b(() => Console.WriteLine(flag));
Try it, and you will see that this changes the output of the program from "True" to "False".