November 16, 2020
https://issues.dlang.org/show_bug.cgi?id=21399

          Issue ID: 21399
           Summary: DDoc doesn't document symbols inside static foreach
                    loops
           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.

--