http://d.puremagic.com/issues/show_bug.cgi?id=7321
Summary: returning void considered unsafe by safety inference Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: timon.g...@gmx.ch --- Comment #0 from timon.g...@gmx.ch 2012-01-19 09:51:50 PST --- In the following code, the second delegate literal is incorrectly inferred as unsafe: static assert(is(typeof((){})==void function()pure nothrow @safe)); // ok static assert(is(typeof((){return;})==void function()pure nothrow @safe));// fail Error: static assert (is(void function() pure nothrow == void function() pure nothrow @safe)) is false -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------