[Issue 21400] New: DDoc skips version else blocks inside templates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 16 21:07:44 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21400

          Issue ID: 21400
           Summary: DDoc skips version else blocks inside templates
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: snarwin+bugzilla at gmail.com

Example program:

---
/// My cool struct
struct S(T)
{
    version (none) {} else
        /// My cool method
        void method() {}
}
---

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

--


More information about the Digitalmars-d-bugs mailing list