https://issues.dlang.org/show_bug.cgi?id=21175
Paul Backus <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Paul Backus <[email protected]> --- I think a lowering that works for all cases is e1 = e2 to auto ref typeof(e1) (auto ref typeof(e1) v1) { v1.opAssign(e2); return v1; }(e1) This can be expanded recursively to handle any number of chained assignments (e.g., replace e2 with `e2a = e2b`). The only catch is that D doesn't currently allow function literals that return `auto ref`. --
