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
Who hasn't been bitten by this bug?
struct Foo { int bar; this(int bar) { bar = bar; } }
Instead of assigning the constructor parameter to the struct member as intended, this does nothing. Oops.
As long as there's no opAssign overload involved, these mistakes are guaranteed to be no-ops. Let's make them errors instead.
The text was updated successfully, but these errors were encountered:
This is a duplicate of a bug I have reported in the past. Can't remember what number it is though.
Sorry, something went wrong.
@thewilsonator #17874
Successfully merging a pull request may close this issue.
Who hasn't been bitten by this bug?
Instead of assigning the constructor parameter to the struct member as intended, this does nothing. Oops.
As long as there's no opAssign overload involved, these mistakes are guaranteed to be no-ops. Let's make them errors instead.
The text was updated successfully, but these errors were encountered: