https://issues.dlang.org/show_bug.cgi?id=14383
Issue ID: 14383
Summary: documented unittests don't work for module declaration
Product: D
Version: unspecified
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
Sometimes it's useful to have an introductory example for a module, but
documented unittest currently don't work for that.
cat > mod.d << CODE
/**
My Module
*/
module mod;
///
unittest
{
auto example = "usage";
}
CODE
dmd -D -c -o- mod
Should produce the same output as this.
cat > mod.d << CODE
/**
My Module
----
auto example = "usage";
----
*/
module mod;
CODE
--