https://issues.dlang.org/show_bug.cgi?id=2444
Mathias Lang <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] | |m Resolution|--- |WORKSFORME --- Comment #2 from Mathias Lang <[email protected]> --- So, IIUC, your test case would be: ``` struct Foo { int a; ~this () {} void opAssign (int i) { } } void main () { Foo f; f = 42; assert(f.a == 0); f = Foo(45); assert(f.a == 45); } ``` This currently compiles & works as expected. Nowadays the compiler always generate the required `opAssign` (which is the identity opAssign). Closing as 'worksforme'. --
