2531 – DDoc not generated correctly for struct methods inside static if

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2531 - DDoc not generated correctly for struct methods inside static if
Summary: DDoc not generated correctly for struct methods inside static if
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2008年12月21日 10:45 UTC by David Simcha
Modified: 2015年06月09日 01:20 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description David Simcha 2008年12月21日 10:45:05 UTC
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.
Comment 1 David Simcha 2009年01月10日 09:34:25 UTC
Resolved in DMD 2.023.


AltStyle によって変換されたページ (->オリジナル) /