Bug 13953 – AA .remove pseudo-method doesn't work via alias this

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-08T11:49:48Z
Last change time
2018-11-04T04:29:23Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Vladimir Panteleev

Comments

Comment #0 by dlang-bugzilla — 2015-01-08T11:49:48Z
/////// test.d /////// struct S { string[string] aa; alias aa this; } void main() { S s; s["foo"] = "bar"; s.remove("foo"); } ////////////////////// I did not find a "remove" method or UFCS-function in object.di/object_.d, so I guess it's still a compiler intrinsic.
Comment #1 by razvan.nitu1305 — 2018-11-02T11:32:22Z
*** Issue 14583 has been marked as a duplicate of this issue. ***
Comment #2 by razvan.nitu1305 — 2018-11-02T20:33:39Z
Comment #3 by github-bugzilla — 2018-11-04T04:29:22Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/afc89912cac8f640928f41d973ec6edbde50baf4 Fix Issue 13953 - AA .remove pseudo-method doesn't work via alias this https://github.com/dlang/dmd/commit/c6aa01867711264b678eed6e1af618b2cc495526 Merge pull request #8904 from RazvanN7/Issue_13953 Fix Issue 13953 - AA .remove pseudo-method doesn't work via alias this