-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Adjust nullability of a target type for an argument of a lifted binary operator. #43165
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
Conversation
…y operator. Fixes dotnet#3936.
1 similar comment
| ParameterSymbol parameter, | ||
| TypeWithState operandType) | ||
| { | ||
| TypeWithAnnotations targetTypeWithNullability = parameter.TypeWithAnnotations; |
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.
targetTypeWithNullability [](start = 40, length = 25)
Nit: Not a fan of the naming. Nullability in this file generally means either annotation state or flow state. This is really possiblyLiftedTargetType. #ByDesign
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.
The name matches parameter name of the VisitConversion method that is called below.
In reply to: 405826407 [](ancestors = 405826407)
| return x6 == y6; | ||
| } | ||
|
|
||
| bool M7(DateTime? x7, S? y7) |
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.
Consider adding a case for DateTime x8, S y8 #Resolved
333fred
left a comment
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 (commit 1). Just a couple of minor nits.
Fixes #39361.