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

Iain Buclaw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Iain Buclaw <[email protected]> ---
Correction on test:

module mod;
static if(1)
{
    int fun()(int a)
    {
        return a;
    }
}

deprecated
{
    double fun()(double a)
    {
        return a;
    }
}
---
module main;
int inst(T)(T x)
{
    import selective : fun; // template 'fun' is deprecated
    return fun(x);
}

int main()
{
    return inst(0); // instantiated from here
}

--

Reply via email to