www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7747] New: "forward reference to <func>" message fix

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: nobody puremagic.com
        ReportedBy: wfunction hotmail.com



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: -------
Mar 21 2012