[Issue 5793] Types can't be inferred from template argument types

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 18 17:42:52 PDT 2015


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

--- Comment #2 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Simplified example:

/////////// test.d //////////
template Identity(T)
{
    alias Identity = T;
}

void fun(T)(Identity!T value)
{
}

void main()
{
    fun(5);
}
/////////////////////////////

--


More information about the Digitalmars-d-bugs mailing list