http://d.puremagic.com/issues/show_bug.cgi?id=10842
Summary: auto return function not executed depending on how it's called Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: critical Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: thelastmamm...@gmail.com --- Comment #0 from thelastmamm...@gmail.com 2013-08-17 18:28:51 PDT --- dmd -version=A -run main.d: prints nothing dmd -version=B -run main.d: prints ok ---- auto fail(){ import std.stdio; writeln("ok"); /+ //would be same with this: assert(0); //or this: import std.exception; throw new Exception("bad"); +/ return null; } string foo(){ version(A){ auto temp=fail(); return temp; } else return fail(); } void main(){ foo(); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------