digitalmars.D.bugs - [Issue 7705] New: lambda syntax doesn't allow some valid signatures
- d-bugmail puremagic.com (35/35) Mar 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7705
- d-bugmail puremagic.com (10/10) Mar 13 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7705
- d-bugmail puremagic.com (9/9) Mar 14 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7705
- d-bugmail puremagic.com (10/10) Mar 14 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7705
- d-bugmail puremagic.com (10/10) Mar 22 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7705
http://d.puremagic.com/issues/show_bug.cgi?id=7705 Summary: lambda syntax doesn't allow some valid signatures Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: ice, rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: k.hara.pg gmail.com --- Comment #0 from Kenji Hara <k.hara.pg gmail.com> 2012-03-13 20:42:46 PDT --- Following code should work as expected. void main() { // lambda has a qualified parameter that needs type inference void foo1(void delegate(ref int ) dg){ int x=10; dg(x); } foo1((ref x){ assert(x == 10); }); // test.d(4): Error: undefined identifier x // Assertion failure: 'typen->deco' on line 1690 in file 'cast.c' // lambda has C style variadic void foo2(void delegate(int, ...) dg){ dg(20, 3.14); } foo2((x,...){ assert(x == 20); }); // OK // lambda has D style type safe variadic void foo3(void delegate(int[]...) dg){ dg(1, 2, 3); } foo3((x ...){ assert(x == [1,2,3]); }); // test.d(16): Error: undefined identifier x // Assertion failure: 'typen->deco' on line 1690 in file 'cast.c' } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 13 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7705 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2012-03-13 20:48:27 PDT --- https://github.com/D-Programming-Language/dmd/pull/809 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 13 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7705 --- Comment #2 from github-bugzilla puremagic.com 2012-03-14 01:24:57 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/dc89c64a8739d3379ccca0088deaead096ac0332 Merge pull request #809 from 9rnsr/fix_funclit Issue 7705 - lambda syntax doesn't allow some valid signatures -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 14 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7705 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: -------
Mar 14 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7705 timon.gehr gmx.ch changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timon.gehr gmx.ch --- Comment #3 from timon.gehr gmx.ch 2012-03-22 01:42:04 PDT --- *** Issue 7297 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 22 2012