[Issue 9474] New: Ddoc's unittests should work correctly with ditto

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 7 15:35:25 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9474

           Summary: Ddoc's unittests should work correctly with ditto
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: hsteoh at quickfur.ath.cx


--- Comment #0 from hsteoh at quickfur.ath.cx 2013-02-07 15:35:25 PST ---
Code:
----------
/**
 * Documented function
 */
void documentedFunction() { doSomething(); }

/// Documented unittest
unittest
{
    ...
}

/// ditto
void documentedFunction(int a) {
    // This is an overload of the no-args documentedFunction.
}
--------------

Currently, the ddoc for the unittest will fail to appear. Removing the ditto
comment makes the problem go away. Ideally, this needs to do the Right Thing
(the unittest should appear in the Example section in the ditto'd docs).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list