digitalmars.D.bugs - [Issue 10415] New: Bad error message with const property of const class instance
- d-bugmail puremagic.com (38/38) Jun 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10415
- d-bugmail puremagic.com (13/13) Jun 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10415
- d-bugmail puremagic.com (11/11) Jun 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10415
- d-bugmail puremagic.com (9/9) Jun 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10415
http://d.puremagic.com/issues/show_bug.cgi?id=10415 Summary: Bad error message with const property of const class instance Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc Title: Component: dmd Severity: Code number: Keywords: Outcome: Is done: no See also: class Foo { property int bar() const { return 0; } property void bar(int) {} } void main() { const x = new Foo; x.bar = 1; } DMD 2.063.2 gives a bad error message, that is wrong and doesn't explain the true nature of the problem: test.d(9): Error: not a property x.bar -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10415 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, pull CC| |andrej.mitrovich gmail.com Platform|x86 |All OS/Version|Windows |All 10:41:28 PDT --- https://github.com/D-Programming-Language/dmd/pull/2227 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10415 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a4cd2d18d1b025cc2bb694614d0e85746375811e Fixes Issue 10415 - Bad diagnostic on writing to an r-value property return. https://github.com/D-Programming-Language/dmd/commit/97abb8a07361aca0b8ca0a9d0d3b71fdf40e0f61 Issue 10415 - Bad diagnostic on writing to an r-value property return -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10415 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 19 2013