C# compiler "Roslyn" regression

Description

Environment

Windows 8.1 or Windows 10 (build 10130) Microsoft Visual Studio Professional 2015 RC Version 14.0.22823.1 D14REL

Attachments

2

Activity

Show:

Alexander Shakurin August 5, 2015 at 11:24 AM
Edited

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

Marc Gerritsen July 27, 2015 at 1:49 PM

I have the unit test and fixes ready.
Just creating a pull request now!

Fixed

Details

Assignee

Unassigned

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created June 2, 2015 at 10:51 AM
Updated May 1, 2017 at 3:39 AM
Resolved August 17, 2015 at 11:05 AM
Who's Looking?
Loading...