[Issue 9473] New: DDoc'd unittests should not add Example block to generated docs if there's already an Example block

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 7 15:32:42 PST 2013


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

           Summary: DDoc'd unittests should not add Example block to
                    generated docs if there's already an Example block
           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:32:41 PST ---
/**
The magic function that can do anything.
Example:
---
void main(string[] args)
{
    dotDotDotMagic();
}
---
*/
void dotDotDotMagic() { doAnything(); }

/// Ddoc'd unittest
unittest
{
    int x=1;
    dotDotDotMagic();
    assert(x==2); // wow!
}
----------------------

Currently the output will contain two Example: sections, one following the
other. They should be merged.

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