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
----