http://d.puremagic.com/issues/show_bug.cgi?id=2531
Summary: DDoc not generated correctly for struct methods inside static if Product: D Version: 2.022 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzi...@digitalmars.com ReportedBy: dsim...@yahoo.com I've written a few templated classes and structs for which some methods are supposed to only exist in certain instantiations, and are therefore wrapped in static if blocks. It seems that DDoc doesn't document these properly, or at all. Example: /**A lame, utterly useless struct.*/ struct Foo(T) { /**Attempt one: Doc outside static if.*/ static if(is(T == uint)) { /**Attempt two: Inside.*/ void bar() {} } } Produces the following docs: test6 struct Foo(T); A lame, utterly useless struct. Page generated by Ddoc. --