[Issue 13942] Bad template error message

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jan 6 08:08:09 PST 2015


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

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All

--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> ---
Reduced test case:

template isRawStaticArray(T, A...)
{
    enum isRawStaticArray = false;
}

template to(T)
{
    T to(A...)(A args)
        if (!isRawStaticArray!A)
    {
        return 0;
    }
}

void main(string[] args)
{
    auto t = to!double();
}

--


More information about the Digitalmars-d-bugs mailing list