[Issue 9833] New: version(unittest) should be included in documented unittests

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 30 01:48:10 PDT 2013


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 at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at 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: -------


More information about the Digitalmars-d-bugs mailing list