[Issue 9925] New: Constructor with all arguments having a default	value is not interpreted as a default constructor
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Apr 12 08:47:48 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=9925
           Summary: Constructor with all arguments having a default value
                    is not interpreted as a default constructor
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: leandro.lucarella at sociomantic.com
--- Comment #0 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2013-04-12 08:47:46 PDT ---
Test case:
---
class C : B
{
}
class B
{
    this(int n = 1)
    {
    }
}
---
This was broken by this commit:
https://github.com/D-Programming-Language/dmd/commit/14d466438f3e2714dbda6672645653d472c7bcd2
Tracked down in branch dmd-1.x with git bisect, which said this merge was the
one introducing the regression:
https://github.com/D-Programming-Language/dmd/pull/1439
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list