We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider
struct S { int opCmp(S rhs) { assert(0); } } void main() { assert(S.init == S.init); }
The absence of opEquals means it's using the language default, which means it's safe for S to use the default toHash as well.
dscanner should only throw a warning when opEquals exists but toHash doesn't.
The text was updated successfully, but these errors were encountered:
I agree that this would be a good change.
Sorry, something went wrong.
6fe77da
Merge pull request #599 from BBasile/issue-575
9df55a7
fix #575 - Dscanner should allow opCmp with no toHash
No branches or pull requests
Consider
The absence of opEquals means it's using the language default, which means it's safe for S to use the default toHash as well.
dscanner should only throw a warning when opEquals exists but toHash doesn't.
The text was updated successfully, but these errors were encountered: