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

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:


struct Foo(T);
    A lame, utterly useless struct.

Page generated by Ddoc.


Reply via email to