https://issues.dlang.org/show_bug.cgi?id=14600
Ketmar Dark <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86_64 |All OS|Windows |All --- Comment #1 from Ketmar Dark <[email protected]> --- it's actually a grammar issue. what `() => { writeln("testing"); }` does is returns `void delegate () { writeln("testing"); }`. i.e. `=> { writeln("testing"); }` is correctly parsed as *expression* which returns delegate. another thing is that compiler doesn't emit warnings by default. compiling the code with "-w" flag gives this message: Warning: calling z01.main.__lambda1 without side effects discards return value of type void function() @safe, prepend a cast(void) if intentional i think that the report can be closed as "not-a-bug". we'd better spam bugzilla with "make warnings opt-out instead of opt-in" requests. ;-) --
