[Issue 14965] [REG2.031] Forward reference to inferred return type of function call when using auto return type

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Feb 2 03:54:05 PST 2016


https://issues.dlang.org/show_bug.cgi?id=14965

Andrea Fontana <trikko at katamail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trikko at katamail.com

--- Comment #4 from Andrea Fontana <trikko at katamail.com> ---
Recursive example:

auto guessreturn(uint i)
{
    if (i == 0) return 0;
    else return guessreturn(i-1);
}

--


More information about the Digitalmars-d-bugs mailing list