Access to modified closure, is this a ReSharper bug?

Posted by hmemcpy on Stack Overflow See other posts from Stack Overflow or by hmemcpy
Published on 2010-04-07T10:40:05Z Indexed on 2010/04/07 10:43 UTC
Read the original article Hit count: 460

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about resharper

Related posts about bug