ddoc template error

BlackEdder via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 19 12:47:41 PST 2015


I'm trying to use ddoc to generate documentation, but get the 
following error:
$ dub -b docs
Building configuration "library", build type docs
Running dmd...
source/painlessjson.d(287): Error: template 
painlessjson.fromJSON(T)(JSONValue json) unmatched --- in DDoc 
comment
FAIL . painlessjson staticLibrary
Error executing command run: dmd failed with exit code 1.

The relevant code:
/// Convert from JSONValue to any other type
T fromJSON(T)(JSONValue json)
{
  /* code */
}

The code on its own compiles normally (and passes all tests).

Link to full code:
https://github.com/BlackEdder/painlessjson/blob/master/source/painlessjson.d#L286

Any help appreciated :)


More information about the Digitalmars-d-learn mailing list