This code doesn't work. ---- U[] id(U)( U[] ); shared(U[]) id(U)( shared(U[]) ); void main() { shared(int)[] x; static assert(is( typeof(id(x)) == shared(int)[] )); // Error: static assert (is(typeof(__error) == shared(int)[])) is false }
https://github.com/D-Programming-Language/dmd/pull/798
https://github.com/D-Programming-Language/dmd/pull/800