Assignment operators should return by ref, not by value. void edit(ref int) { } void main() { int n; edit(n += 4); // OK edit(n = 4); // [1] } --- 1) Error: function main.edit (ref int _param_0) is not callable using argument types (int)
This code compiles succesfully today. Closing as w4m.