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

Vladimir Panteleev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
           Hardware|x86_64                      |All
            Summary|Function Default Parameters |[REG2.060] Function Default
                   |Are Lost                    |Parameters Are Lost
                 OS|Windows                     |All
           Severity|enhancement                 |regression

--- Comment #1 from Vladimir Panteleev <[email protected]> ---
Reduced:

//////////////// test.d ////////////////
alias int function(int, int = 1) FunPtr;

struct ST(T)
{
    T fctn;

    void foo()
    {
        fctn(1);
    }
}

ST!FunPtr st;
////////////////////////////////////////

This is a regression.

Introduced in
https://github.com/D-Programming-Language/dmd/commit/acc22ce25db42facfe4917aeceabd28a410f4c95

--

Reply via email to