https://issues.dlang.org/show_bug.cgi?id=12461
Andrej Mitrovic <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected] --- Comment #1 from Andrej Mitrovic <[email protected]> --- This seems to be a Proxy issue. Kenji, if I add the following to Proxy: ----- private enum getField(T) = is(T == typeof(this)) ? ("." ~ __traits(identifier, a)) : ""; auto ref opOpAssign(string op, this X, V)(auto ref V v) { return mixin("a " ~ op ~ "= v" ~ getField!V); } ----- Then the OP code will work. But I'm not sure if this is the appropriate fix. Do you have a better idea? --
