www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14015] New: ddoc Error: function unmatched as result of

https://issues.dlang.org/show_bug.cgi?id=14015

          Issue ID: 14015
           Summary: ddoc Error: function unmatched as result of underscore
                    in unittest comment
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: edder tkwsping.nl

Generating ddoc from the following code results in an error:

code:
///
void dummy()
{
}

/// Testing _name
unittest
{
    assert( true );
} 

error:
$ dmd -main -D ddoc.d 
ddoc.d(2): Error: function ddoc.dummy unmatched --- in DDoc comment

The error goes away if you remove the underscore, or wrap it in quotes
("_name") and it seems to only occur in documentation comments before
unittests.

--
Jan 20 2015