shared(inout(int)) foo(shared(inout(int)) n){ return n; } void main() { shared(const(int)) n; static assert(is(typeof(foo(n)) == shared(const(int)))); // test.d(6): Error: static assert // (is(const(int) == shared(const(int)))) is false }
https://github.com/D-Programming-Language/dmd/pull/481
https://github.com/D-Programming-Language/dmd/commit/3448ffd1b407453aba647da5f0435f648cfbe04f