"Forward reference" eror message improvement?

Daniel Murphy yebblies at nospamgmail.com
Tue Mar 20 22:09:48 PDT 2012


"Mehrdad" <wfunction at hotmail.com> wrote in message 
news:jkak36$2skq$1 at digitalmars.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?

Please open an enhancement request. 




More information about the Digitalmars-d mailing list