<div dir="ltr"><div>dmd 2.066(rc) generates warning: 'Deprecation: Read-modify-write operations are not allowed for shared variables. Use core.atomic.atomicOp!"-="(a, 1) instead.' for following code:</div>
<div><br></div><div>synchronized {</div><div>  ++a;</div><div>}</div><div><br></div><div>Is that correct given that it's inside synchronized?</div><div><br></div></div>