www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14622] New: documented unit test that follows an undocumented


          Issue ID: 14622
           Summary: documented unit test that follows an undocumented
                    symbol silently ignored
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ddoc, diagnostic
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: schveiguy yahoo.com

Consider this:

/// document foo
void foo(int) {...}

void foo(string) {...}

    // use foo like this!

The unit test is not included in the documentation, because foo(string) was not
ditto'd. But clearly, the unit test was supposed to be part of the

I propose we make a documented unit test that isn't attached to any symbol a
warning when generating documentation.

May 26 2015