-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Definition and substituted symbols should be equal when nullability is ignored #49798
Comments
If I remember correctly, when we discussed equality behavior in relation to nullable annotations back several months ago, we decided that, if symbols were equal before enabling nullable, they should remain equal after enabling nullable. Otherwise, IDE, analyzers and other clients suffer. |
@AlekseyTs are you referring to equals by default (aka going through |
The equals by default, which is equivalent to using SymbolEqualityComparer.Default. |
Gotcha. Yes agree that should be equivalent. The reasoning though actually goes back almost a year. We first hit this problem when we added support for nullability in the compiler with xUnit. Once the equality for symbols differed via |
@jcouv can you help us understand what you think the issue is here that we're missing? |
@jaredpar Some implementations of |
The text was updated successfully, but these errors were encountered: