Summary: Explicit cast should resolve lambda type
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-01-02 21:48:52 PST ---
Tested with DMD 2.058head.

auto dg = cast(int function(int))(a)=>a;

Error: cannot cast __lambda2

The code should compile.

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

Reply via email to