[Issue 19674] multiple local template function with same name don't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 13 20:01:26 UTC 2019


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

--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Or, granted that this is an error.

void main()
{
    import core.stdc.stdio;
    {
        static int[] a;
        a ~= 3;
        if (a.length)
            printf("[%d]\n",a[0]);
        else
            printf("[]\n");
    }
    {
        static int[] a;
        a ~= 3;
        if (a.length)
            printf("[%d]\n",a[0]);
        else
            printf("[]\n");
    }
}

Reject the given example for functions as well.

--


More information about the Digitalmars-d-bugs mailing list