This code should compile. auto n = (a, int n = 10){ return n; }(10);
https://github.com/D-Programming-Language/dmd/pull/914
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