-
Notifications
You must be signed in to change notification settings - Fork 686
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
DimAuto equality #3521
Comments
Also not sure if |
I meant to add such a test. All
|
Oh something important about equality, in particular for these types: I'd really like to turn them into record structs, if possible, because they are values and making the compiler treat them as such will help avoid inconsistencies in treating them as value or reference. However, that will make it illegal to define operator== and operator!=, as they are defined as all field value equality generated by Roslyn entirely and not able to be overridden. Equals isn't operator== though and it can be overridden in record structs. If it turns out to be too difficult to make them record structs, then record and struct are the next two choices, but that's a bridge to cross if/when we get to it. |
🥳 Nice |
Describe the bug
Regarding equality of DimAuto. The following test fails
Notice also that even the basic case fails:
Percent does not behave this way, it supports Equals
The text was updated successfully, but these errors were encountered: