[Issue 14736] [REG2.060] Function Default Parameters Are Lost

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 26 03:52:58 PDT 2015


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

Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow at gmail.com
           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 <thecybershadow at gmail.com> ---
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

--


More information about the Digitalmars-d-bugs mailing list