March 21, 2012 [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 --- Comment #0 from wfunction@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: ------- |
Copyright © 1999-2021 by the D Language Foundation