[Issue 2531] New: DDoc not generated correctly for struct methods inside static if
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 21 08:45:06 PST 2008
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: bugzilla at digitalmars.com
ReportedBy: dsimcha at 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.
--
More information about the Digitalmars-d-bugs
mailing list