[Issue 16370] outdated spec: templated functions allowed in interfaces and functions

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Aug 11 05:39:32 PDT 2016


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

--- Comment #5 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Tested with this, and it compiled:

void main()
{
    int foo(T)(T t)
    {
        return 1;
    }

    foo(0);
    foo("hi");
}

--


More information about the Digitalmars-d-bugs mailing list