5 fail_compilation/diag3672a.d(17): Error: read-modify-write operations are not allowed for `shared` variables
6 fail_compilation/diag3672a.d(17): Use `core.atomic.atomicOp!"+="(ns.x, 1)` instead
7 fail_compilation/diag3672a.d(19): Error: read-modify-write operations are not allowed for `shared` variables
8 fail_compilation/diag3672a.d(19): Use `core.atomic.atomicOp!"+="(s.sx, 1)` instead
11 class NS { shared int x; }
12 shared class S { int sx; }
25 fail_compilation/diag3672a.d(35): Error: read-modify-write operations are not allowed for `shared` variables
26 fail_compilation/diag3672a.d(35): Use `core.atomic.atomicOp!"+="(s.var, 1)` instead
27 fail_compilation/diag3672a.d(36): Error: read-modify-write operations are not allowed for `shared` variables
28 fail_compilation/diag3672a.d(36): Use `core.atomic.atomicOp!"-="(s.var, 2)` instead