http://d.puremagic.com/issues/show_bug.cgi?id=9305
Summary: Ugly Ddoc for default template lambda expressions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Peter Alexander <[email protected]> 2013-01-12
12:41:57 PST ---
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))();
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------