www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16463] New: ddoc on string mixin does nothing

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

          Issue ID: 16463
           Summary: ddoc on string mixin does nothing
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

I have code to the effect of this:

/** My struct */
struct S
{
    /** Documentation. */
    mixin("int x;");

    mixin("/** Documentation */ int y;");
}

Documentation for the struct S doesn't list the members 'x', or 'y'.
I think both should work as expected.

If you're synthesizing a member, there's a good change you want to synthesize
the documentation too...

--
Sep 02 2016