[Issue 9305] New: Ugly Ddoc for default template lambda expressions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 12 12:41:58 PST 2013


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: nobody at puremagic.com
        ReportedBy: peter.alexander.au at gmail.com


--- Comment #0 from Peter Alexander <peter.alexander.au at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list