Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 14, 2012 [Issue 8241] New: cannot use template function literal as default alias argument | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: timon.gehr@gmx.ch --- Comment #0 from timon.gehr@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: ------- |
June 15, 2012 [Issue 8241] cannot use template function literal as default alias argument | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8241 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-06-15 09:42:20 PDT --- https://github.com/D-Programming-Language/dmd/pull/1006 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 15, 2012 [Issue 8241] cannot use template function literal as default alias argument | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8241 --- Comment #2 from github-bugzilla@puremagic.com 2012-06-15 12:44:00 PDT --- 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 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 15, 2012 [Issue 8241] cannot use template function literal as default alias argument | ||||
---|---|---|---|---|
| ||||
Posted in reply to timon.gehr@gmx.ch | http://d.puremagic.com/issues/show_bug.cgi?id=8241 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation