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

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-12-21T10:45:00Z
Last change time
2015-06-09T01:20:50Z
Assigned to
bugzilla
Creator
dsimcha

Comments

Comment #0 by dsimcha — 2008-12-21T10:45:05Z
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 by dsimcha — 2009-01-10T09:34:25Z
Resolved in DMD 2.023.