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

           Summary: DMD not considering ctor with default args as default
                    ctor
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Puneet Goel <[email protected]> 2013-03-16 20:06:54 PDT 
---
Compiles with 2.062. But with the latest github snapshot, gives me an error:

$ rdmd --force test.d
test.d(5): Error: class test.Bar Cannot implicitly generate a default ctor when
base class test.Foo is missing a default ctor
Failed: 'dmd' '-v' '-o-' 'test.d' '-I.'


class Foo {
  this(int arg=0) { }
}

class Bar: Foo { }

void main() {
  Bar test = new Bar;
}

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

Reply via email to