I have the following code in a unit test (simplified to be easier to read) :
var item = person.Parents.First(x => x.ParentType == ParentType.Father);
This compiles and all is fine BUT R# complains with squigglies under the LINQ extension method First() and coloring ParentType red. It says "cannot resolve symbol 'ParentType'".
The unit test is in a standard .net 3.5 class library and the code under test is in a .net 2.0 CompactFramework class library.
Parents is a IList<Parent>.
The version of R# I'm running is v4.5.1231.7.