D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8005 - Lambda with parameter type inference should consider default args
Summary: Lambda with parameter type inference should consider default args
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2012-04-29 18:17 UTC by Kenji Hara
Modified: 2012-04-30 01:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kenji Hara 2012-04-29 18:17:27 UTC
This code should compile.

auto n = (a, int n = 10){ return n; }(10);
Comment 2 github-bugzilla 2012-04-30 00:39:08 UTC
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