https://issues.dlang.org/show_bug.cgi?id=7176
Max Samukha <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #23 from Max Samukha <[email protected]> --- (In reply to Dlang Bot from comment #22) > dlang/dmd pull request #11833 "Implement shortened methods with => syntax" > was merged into master: > > - e6850f8a241192e24869f9b7ad608b52706e1aa5 by Nicholas Lindsay Wilson: > I am not convinced it is worth special-casing > the simple "=> y ALWAYS means "{ return y; }" rule for > this case and thus left it alone. > C raises its ugly head again. With a proper unit type, "=> void.init;" would be rewritten to "{ return void.init; }". --
