On 03/24/2012 12:34 PM, Timon Gehr wrote: > else static if(is(T _ == shared(U),U)) alias const(getConstQual!U) r; should be else static if(is(T _ == shared(U),U)) alias shared(const(getConstQual!U)) r; But it does not matter for the AA implementation because it only uses getConstQual with immutable key types.