[Issue 9472] New: Include comments in ddoc'd unittest blocks

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 7 15:28:48 PST 2013


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

           Summary: Include comments in ddoc'd unittest blocks
           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:28:47 PST ---
Code:

---
/// A magic function that can do anything
void dotDotDotMagic() { doAnything(); }

/// Example
unittest
{
    // Call the very powerful function that can do anything!
    dotDotDotMagic();
}
---

The comment inside the unittest should be included in the generated DDoc for
dotDotDotMagic().

Alternatively, if we want to be able to put comments inside the unittest block
that doesn't get seen by the user, we can require the inner comments to be doc
comments as well (i.e., with /// instead of just //).

-- 
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