Thread overview | |||||
---|---|---|---|---|---|
|
November 21, 2012 [Issue 9052] New: [2.061 alpha] AA.length in a const context tries to call opAssign + no error line number | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9052 Summary: [2.061 alpha] AA.length in a const context tries to call opAssign + no error line number Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: sludwig@outerproduct.org --- Comment #0 from Sönke Ludwig <sludwig@outerproduct.org> 2012-11-21 07:31:55 PST --- The following code fails (in length()) because aa.length internally tries to call Json.opAssign. There are also no line numbers in the error message. Happens beginning with the first 2.061 alpha release (or one of the first). Related to http://d.puremagic.com/issues/show_bug.cgi?id=9031 --- struct Json { Json[string] aa; void opAssign(Json) {} size_t length() const { return aa.length; } } --- Error: function json.Json.opAssign (Json _param_0) is not callable using argument types (const(Json)) const Error: cannot implicitly convert expression (p.value) of type const(Json) to Json -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 12, 2012 [Issue 9052] [2.061 alpha] AA.length in a const context tries to call opAssign + no error line number | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | http://d.puremagic.com/issues/show_bug.cgi?id=9052 Alex Rønne Petersen <alex@lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |alex@lycus.org Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 12, 2012 [Issue 9052] [2.061 alpha] AA.length in a const context tries to call opAssign + no error line number | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | http://d.puremagic.com/issues/show_bug.cgi?id=9052 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-12-11 21:10:55 PST --- https://github.com/D-Programming-Language/druntime/pull/363 -- 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