tested with DMD 2.056 void main(){ shared(int) x; static assert(is(typeof(x) == shared(int))); // pass const(typeof(x)) y; const(shared(int)) z; static assert(is(typeof(y) == typeof(z))); // fail! } The static assertion should pass.
https://github.com/D-Programming-Language/dmd/pull/502
https://github.com/D-Programming-Language/dmd/commit/4af3787406efe9b71dc73df43e5a7e64c7bb3f22