http://d.puremagic.com/issues/show_bug.cgi?id=8258

           Summary: Delegates do not respect default parameters
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: e...@gnuk.net


--- Comment #0 from Brad Anderson <e...@gnuk.net> 2012-06-17 02:08:40 PDT ---
This apparently works in dmd 2.059:

void foo(void delegate(int i, bool yes = true) dg)
{
   dg(1);
}

void main()
{
   void inner(int i, bool yes = true)
   {
   }
   foo(&inner);
}

but no longer works in dmd git HEAD 2.060.  I'm filing this on behalf of
someone in IRC.  Aldacron may also know something about it too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to