www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21399] New: DDoc doesn't document symbols inside static


          Issue ID: 21399
           Summary: DDoc doesn't document symbols inside static foreach
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: snarwin+bugzilla gmail.com

Example program:

import std.meta: AliasSeq;

/// My cool struct
struct S
    static foreach (T; AliasSeq!(int, string, double))
        /// My cool method
        void method(T t) {}

As of DMD 2.094.0, the DDoc output for this program (compiled with `dmd -c -D`)
contains documentation for S, but not for method.

Nov 16 2020