-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linq: Adds support constant evaluation of Nullable<T>.HasValue #3273
Conversation
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
@khdang Please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks!
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
@ccurrens It looks like the last commit is failing on the
|
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Thanks for the heads up. I messed up the conversion of the first pattern expression back to what it needed to be. I'll post up the fix in just a minute.
|
Head branch was pushed to by a user without write access
The property pattern for |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Description
This commit adds support for evaluating
Nullable<T>.HasValue
when the original nullable constant'sHasValue
is false.Nullable<T>
is tricky to use with reflection because of it's special runtime behavior. This manually determines ifHasValue
was false, and in that case returns a constant expression offalse
.More details are in #3272.
Type of change
Closing issues
closes #3272