Bug 8005 – Lambda with parameter type inference should consider default args

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-29T18:17:00Z
Last change time
2012-04-30T01:20:21Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2012-04-29T18:17:27Z
This code should compile. auto n = (a, int n = 10){ return n; }(10);
Comment #1 by k.hara.pg — 2012-04-29T20:33:36Z
Comment #2 by github-bugzilla — 2012-04-30T00:39:08Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/74ad0836d04b6b59137758c9ed1ad86643cb0385 fix Issue 8005 - Lambda with parameter type inference should consider default args https://github.com/D-Programming-Language/dmd/commit/b532489658e763f88407a5ecc0fdab77a7df62ae Merge pull request #914 from 9rnsr/fix8005 Issue 8005 - Lambda with parameter type inference should consider default args