[Issue 14015] New: ddoc Error: function unmatched as result of underscore in unittest comment

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jan 20 02:22:10 PST 2015


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 at puremagic.com
          Reporter: edder at 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.

--


More information about the Digitalmars-d-bugs mailing list