Sergey Gromov <snake.scaly at gmail.com> wrote: > template Const(T) { > version (D_Version2) { > alias const(T) Const; > } else { > alias T Const; > } > } errata: template Const(T) { version (D_Version2) { mixin("alias const(T) Const;"); } else { alias T Const; } } this time actually tested with both 1.035 and 2.019.