Bug 4319 – Constructor templates in struct/class templates documented as __ctor(T)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-06-15T05:28:00Z
Last change time
2012-05-30T17:56:28Z
Keywords
ddoc
Assigned to
nobody
Creator
bugzilla

Attachments

IDFilenameSummaryContent-TypeSize
662bug4319.htmlProduced documentationtext/html559

Comments

Comment #0 by bugzilla — 2010-06-15T05:28:04Z
Created attachment 662 Produced documentation Normally, constructors are documented as they are written, as this(...). In the following case, the constructor is documented as __ctor (see attached file). /// Example struct Bug4319(T) { /// Template constructor this(U)(U u) { } } Could be related to bug 4107.
Comment #1 by issues.dlang — 2011-01-12T00:06:59Z
It's also worth noting that the template's constraints also end up in the html, which is not normal (though one could argue that having it in there would be useful).
Comment #2 by kennytm — 2011-06-05T00:43:09Z
It's not really due to bug 4107. Even in the following case the constructor is documented as 'auto __ctor' instead of 'this'. ----------------------------------- /// Example struct Bug4319b { /// Template constructor this(U)(U u) { } } -----------------------------------
Comment #3 by k.hara.pg — 2012-05-30T17:56:28Z
In 2.060head, template constructor is documented correctly. code: ---- /// Example struct Bug4319b { /// Template constructor this(U)(U u) { } } ---- output: ---- struct Bug4319b; Example this(U)(U u); Template constructor ----