Thread overview
[Issue 4894] Cannot use the same name for nested functions even though they're in different scopes
May 18, 2018
Dmitry Olshansky
May 18, 2018
Dmitry Olshansky
Aug 18, 2019
Simen Kjaeraas
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=4894

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--
May 18, 2018
https://issues.dlang.org/show_bug.cgi?id=4894

Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |dmitry.olsh@gmail.com

--- Comment #1 from Dmitry Olshansky <dmitry.olsh@gmail.com> ---
Seems like a minor limitation, and getting different mangling

--
May 18, 2018
https://issues.dlang.org/show_bug.cgi?id=4894

--- Comment #2 from Dmitry Olshansky <dmitry.olsh@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;
        }
    }
}

--
August 18, 2019
https://issues.dlang.org/show_bug.cgi?id=4894

Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |simen.kjaras@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #3 from Simen Kjaeraas <simen.kjaras@gmail.com> ---


*** This issue has been marked as a duplicate of issue 4699 ***

--