The error "Error: cannot append type Set to type Set" for a struct type Set, which has the operator overloaded: ref Set opOpAssign(string op : "~")(in Set set_);
When reporting bugs, please include a complete, preferably minimal, example.
Cannot reproduce with dmd 2.058 beta. struct Set { ref Set opOpAssign(string op : "~")(in Set set_) { return this; } } void main() { Set s; s ~= s; }