Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
February 16, 2012 [Issue 7525] New: Broken return type inference for delegate returns | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7525 Summary: Broken return type inference for delegate returns Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: siegelords_abode@yahoo.com --- Comment #0 from siegelords_abode@yahoo.com 2012-02-16 14:33:26 PST --- This worked in DMD 2.057, but doesn't compile in 2.058: void main() { int a; char[] delegate() b = { a = 0; return null;}; } Error is: test.d(4): Error: cannot implicitly convert expression (__lambda1) of type typeof(null) delegate() nothrow @safe to char[] delegate() -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 22, 2012 [Issue 7525] Broken return type inference for delegate returns | ||||
---|---|---|---|---|
| ||||
Posted in reply to siegelords_abode@yahoo.com | http://d.puremagic.com/issues/show_bug.cgi?id=7525 --- Comment #1 from siegelords_abode@yahoo.com 2012-02-22 13:59:01 PST --- A few more examples that don't work in 2.058 but work in 2.057: int delegate() a = {return 1U;}; uint delegate() b = {return 1;}; float delegate() c = {return 1.0;}; double delegate() d = {return 1.0f;}; Note that both compilers allow implicit conversions between those basic type pairs. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 26, 2012 [Issue 7525] [2.058 regression] Broken return type inference for delegate returns | ||||
---|---|---|---|---|
| ||||
Posted in reply to siegelords_abode@yahoo.com | http://d.puremagic.com/issues/show_bug.cgi?id=7525 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid Summary|Broken return type |[2.058 regression] Broken |inference for delegate |return type inference for |returns |delegate returns --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2012-02-26 02:29:00 PST --- https://github.com/D-Programming-Language/dmd/pull/765 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 27, 2012 [Issue 7525] [2.058 regression] Broken return type inference for delegate returns | ||||
---|---|---|---|---|
| ||||
Posted in reply to siegelords_abode@yahoo.com | http://d.puremagic.com/issues/show_bug.cgi?id=7525 --- Comment #3 from github-bugzilla@puremagic.com 2012-02-26 21:37:19 PST --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/53b1a0461b485c1260514094e2164bd749f3f6d0 Merge pull request #765 from 9rnsr/fix7525 [2.058 regression] Issue 7525 - Broken return type inference for delegate returns -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 27, 2012 [Issue 7525] [2.058 regression] Broken return type inference for delegate returns | ||||
---|---|---|---|---|
| ||||
Posted in reply to siegelords_abode@yahoo.com | http://d.puremagic.com/issues/show_bug.cgi?id=7525 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