[Issue 8241] New: cannot use template function literal as default alias argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 14 10:34:04 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8241

           Summary: cannot use template function literal as default alias
                    argument
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list