Tested with DMD 2.055 static assert(is(shared(immutable(int)) == immutable(int))); // fail 1 static assert(is(const(shared(immutable(int))) == const(int))); // fail 2 I'd expect both static assertions to pass. (1. Currently immutable(shared(int)) == immutable(int). 2. will work if 1. is fixed.)
*** This issue has been marked as a duplicate of issue 6922 ***