Summary: cannot use template function literal as default alias
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-06-14 10:36:16 PDT ---
DMD 2.059:

auto exec(alias a=function(x)=>x,T...)(T as){return a(as);}
mixin exec!(function(x)=>x, int); // ok
void main(){exec(2);}             // error

The code should compile.

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

Reply via email to