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))();
Comment #1 by k.hara.pg — 2013-01-13T22:29:31Z
Comment #2 by github-bugzilla — 2013-01-14T11:52:01Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2d6db80aa890f23644676dc023842b3c849082a7 fix Issue 9305 - Ugly Ddoc for default template lambda expressions https://github.com/D-Programming-Language/dmd/commit/67ffded7e2635148347cdf312b878277501121be Merge pull request #1481 from 9rnsr/fix9305 Issue 9305 - Ugly Ddoc for default template lambda expressions