Access to modified closure, is this a ReSharper bug?
- by hmemcpy
I have the latest ReSharper 5.0 build (1655), where I have encountered the suggestion 'Access to modified closure' on the following code:
var now = new DateTime(1970, 1, 1);
var dates = new List<DateTime>();
dates.Where(d => d > now);
and the now inside the lambda expression is underlined with the warning.
I'm pretty sure that's a ReSharper bug, but is it really?