https://issues.dlang.org/show_bug.cgi?id=16426
Steven Schveighoffer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Steven Schveighoffer <[email protected]> --- Ran into this today. If the compiler is going to generate an opAssign, it should generate one that forwards to the alias-this member. It should be something equivalent to adding the following overload to the existing generated opAssign: auto ref opAssign(T)(auto ref T val) if (!is(T == typeof(this)) && __traits(compiles, aliasThisMember = val)) { aliasThisMember = val; } BTW, thanks for the workaround. For a wrapped single alias-this member, it works perfectly. --
