[Issue 9524] New: Unittest ddocs fail to appear following ditto
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 16 21:17:45 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9524
Summary: Unittest ddocs fail to appear following ditto
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: hsteoh at quickfur.ath.cx
--- Comment #0 from hsteoh at quickfur.ath.cx 2013-02-16 21:17:44 PST ---
With latest git HEAD:
--------------------snip--------------------
/// A strange struct
struct S(int d) {
int[d] x;
/// A truly strange function.
auto func(A)(A a) if (is(typeof(A) : S))
{
return S!(d+1)();
}
/// ditto
auto func(A)(A a) if (!is(typeof(A) : S))
{
return S!(1)();
}
/// Example
unittest
{
// This example fails to appear in the doc.
int y = 123;
}
}
void main()
{
}
--------------------snip--------------------
HTML output:
--------------------snip--------------------
<html><head>
<META http-equiv="content-type" content="text/html; charset=utf-8">
<title>test</title>
</head><body>
<h1>test</h1>
<!-- Generated by Ddoc from test.d -->
<br><br>
<dl><dt><big><a name="S"></a>struct <u>S</u>(int d);
</big></dt>
<dd>A strange struct<br><br>
<dl><dt><big><a name="func"></a>auto <u>func</u>(A)(A <i>a</i>);
<br><a name="func"></a>auto <u>func</u>(A)(A <i>a</i>);
</big></dt>
<dd>A truly strange function.<br><br>
</dd>
</dl>
</dd>
</dl>
<hr><small>Page generated by <a
href="http://dlang.org/ddoc.html">Ddoc</a>. </small>
</body></html>
--------------------snip--------------------
Note that the unittest code fails to appear in the docs.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list