Bug 8241 – cannot use template function literal as default alias argument
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-06-14T10:36:00Z
Last change time
2012-06-15T14:27:18Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
timon.gehr
Comments
Comment #0 by timon.gehr — 2012-06-14T10:36:16Z
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.