Bug 9037 – DDoc: Chokes on consecutive example sections:
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-17T01:35:00Z
Last change time
2015-06-09T05:12:00Z
Keywords
ddoc, pull, rejects-valid
Assigned to
nobody
Creator
monarchdodra
Comments
Comment #0 by monarchdodra — 2012-11-17T01:35:30Z
dmd -Dfdoc main.d:
=================================
/**
Example:
----
D d = d;
----
----
D d = d;
----
*/
void main()
{
}
=================================
main.d(10): Error: function D main unmatched --- in DDoc comment
=================================
Adding an empty line between the examples makes it compile:
=================================
/**
Example:
----
D d = d;
----
----
D d = d;
----
*/
void main()
{
}
=================================
Yay.
=================================