http://d.puremagic.com/issues/show_bug.cgi?id=7747

           Summary: "forward reference to <func>" message fix
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: wfunct...@hotmail.com


--- Comment #0 from wfunct...@hotmail.com 2012-03-21 11:36:33 PDT ---
auto fact(int n) { return n > 1 ? fact(n - 1) : 0; }

// Error: forward reference to fact



I think the error message could be improved... maybe something like 
"forward reference to inferred return type" like we get with templates?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to