www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9833] New: version(unittest) should be included in documented unittests

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

           Summary: version(unittest) should be included in documented
                    unittests
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ddoc
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: andrej.mitrovich gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-03-30
01:48:08 PDT ---
The following does not generate any documented unittests:

module test;

///
void foo(T)(T t) { }

///
version(unittest)
{
    struct C { }
}

///
unittest
{
    C c;
    foo(c);
}

$ dmd -D -o- test.d

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