Bug 15349 – DDoc: comments on function templates are skipped for templates without doc comment

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-11-17T05:46:10Z
Last change time
2024-12-13T18:45:52Z
Keywords
ddoc
Assigned to
No Owner
Creator
Lionello Lunesu
Moved to GitHub: dmd#19071 →

Comments

Comment #0 by lio+bugzilla — 2015-11-17T05:46:10Z
template case3(fun...) { /++ Blah Params: r = an value +/ void case3(R)(R r){} } No doc is emitted for case3. Adding a DDoc comment on the template will cause the nested doc from being emitted.
Comment #1 by john.michael.hall — 2017-11-30T17:00:43Z
I have a related issue with the code below. When I compile this, I get the first one, but not the second one. Further, the top line foo(f...) does not show up, only T foo(f...)(T x). /++ Some foo template +/ template foo(f...) { /++ Foo here +/ T foo(T x) { return f(x) + 1; } /++ Alternate Foo here +/ T foo(T x, T y) { return f(x, y) + 1; } }
Comment #2 by robert.schadek — 2024-12-13T18:45:52Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19071 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB