C# compiler "Roslyn" regression
Description
Environment
Attachments
Activity
Alexander Shakurin August 5, 2015 at 11:24 AMEdited
I have similar issue but it's reproducible in both VS2015 and VS2013. Here is the sample code that fails:
queryOver.Where(() => project.ProjectEnd <= projectEnd);
where ProjectEnd is Nullable<DateTime> and projectEnd is not null.
For now I was able to find a workaround - using Restrictions:
queryOver.Where(Restrictions.Le(Projections.Property(() => project.ProjectEnd), projectEnd));
Marc Gerritsen July 29, 2015 at 8:56 AM
I updated the pull request.
I checked for the < character
I think it is fixed now
Marc Gerritsen July 29, 2015 at 8:12 AM
Hmm. My fix breaks at another place.
Does anyone know how to check if a property is compiler generated.
I know that the name starts with the < character but don't like checking for this.
Any ideas?
Marc Gerritsen July 27, 2015 at 2:05 PM
The pull request: https://github.com/nhibernate/nhibernate-core/pull/441
Marc Gerritsen July 27, 2015 at 1:49 PM
I have the unit test and fixes ready.
Just creating a pull request now!