← Back to index
|
Original Bugzilla link
Bug 7649 – Bad lambda inference in default function argument
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-05T06:15:00Z
Last change time
2012-03-05T12:14:50Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2012-03-05T06:15:33Z
Case code: ---- void main() { void foo(int function(int) fp = x => 1) { assert(fp(1) == 1); } foo(); } Output: ---- test.d(6): Error: undefined identifier __T1 test.d(6): Error: forward reference to __lambda2
Comment #1
by k.hara.pg — 2012-03-05T06:30:10Z
https://github.com/D-Programming-Language/dmd/pull/789
Comment #2
by github-bugzilla — 2012-03-05T11:29:27Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/9939ff65daecba1dbc9b534166b5a06f3cf07c51
fix Issue 7649 - Bad lambda inference in default function argument