Bug 9305 – Ugly Ddoc for default template lambda expressions
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-12T12:41:00Z
Last change time
2013-01-14T11:52:53Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
peter.alexander.au
Comments
Comment #0 by peter.alexander.au — 2013-01-12T12:41:57Z
The Ddoc generated for this:
/**
foo()
*/
void foo(alias p = (a => a))() {}
is
void foo(alias p = delegate auto(__T1 a) { return a; } )();
Notice that the internal representation of the lambda is leaked into the Ddoc (__T1).
Ideally, the Ddoc would be this:
void foo(alias p = (a => a))();