[Issue 7747] New: "forward reference to <func>" message fix

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 21 11:36:16 PDT 2012


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


--- Comment #0 from wfunction at 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: -------


More information about the Digitalmars-d-bugs mailing list