DMD Issue 4523 - [tdpl] .remove method for Associative Arrays returns void in all cases

This commit is contained in:
Alexey Prokhin
2012-02-15 13:23:23 +04:00
parent 6fea4b65a2
commit fa361ed598
4 changed files with 15 additions and 9 deletions
+1 -3
View File
@@ -2988,9 +2988,7 @@ DValue* RemoveExp::toElem(IRState* p)
DValue* aa = e1->toElem(p);
DValue* key = e2->toElem(p);
DtoAARemove(loc, aa, key);
return NULL; // does not produce anything useful
return DtoAARemove(loc, aa, key);
}
//////////////////////////////////////////////////////////////////////////////////////////