How to write document for methods under static if?
Yuxuan Shui via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Mar 10 04:49:42 PST 2017
Example:
/**
test type
*/
struct A(bool T) {
static if (T) {
/// Case 1
int ok(){ return 1; }
} else {
/// case 2
int notok(){ return 1; }
}
/// Other
int other() { return 0; }
}
///
unittest {
A!true x;
A!false y;
}
In documents generated by ddoc, only case 1 is included. In
documents generated by ddox, none of the cases is included.
What's the proper way to write document in this case?
More information about the Digitalmars-d-learn
mailing list