Summary: Lambda argument's default value is not taken into
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Artem Borisovskiy <> 2012-07-20 05:33:24 PDT 
The following code does not compile (x.d):

void main()
    auto fn = (int x = 0) => x + 1;

with message: "x.d(4): Error: expected 1 function arguments, not 0"
However, calling fn() with an explicit argument works fine as usual.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to