[Issue 4894] Cannot use the same name for nested functions even though they're in different scopes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 18 08:57:44 UTC 2018


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

--- Comment #2 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
(In reply to Dmitry Olshansky from comment #1)
> Seems like a minor limitation, and getting different mangling


for each of identical signature functions:

void main()
{
    {
        int nestedFunc(int val)
        {
            return val+1;
        }
    }
    {
        int nestedFunc(int val)
        {
            return val+2;
        }
    }
}

--


More information about the Digitalmars-d-bugs mailing list