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.
Comment #1 by k.hara.pg — 2012-06-15T09:42:20Z
Comment #2 by github-bugzilla — 2012-06-15T12:44:00Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6cf404de77ca3bea4b2183938ea8bdb3356e8517 fix Issue 8241 - cannot use template function literal as default alias argument https://github.com/D-Programming-Language/dmd/commit/5428cbf4229e111b266d07b502ccaad8a8f58456 Merge pull request #1006 from 9rnsr/fix_funclit Issue 8241 & 8242 - Fixup lambda context pointer correctly