← Back to index
|
Original Bugzilla link
Bug 9925 – Constructor with all arguments having a default value is not interpreted as a default constructor
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-12T08:47:00Z
Last change time
2015-06-09T05:10:38Z
Assigned to
nobody
Creator
leandro.lucarella
Comments
Comment #0
by leandro.lucarella — 2013-04-12T08:47:46Z
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
Comment #1
by andrej.mitrovich — 2013-04-12T08:49:18Z
Fixed recently. *** This issue has been marked as a duplicate of issue 9739 ***
Comment #2
by leandro.lucarella — 2013-04-12T08:52:24Z
Oh, I forgot to update my DMD2 before testing, but this is still present in D1.