-
-
Notifications
You must be signed in to change notification settings - Fork 674
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels