This is not allowed in current spec.
http://dlang.org/expression.html#MixinExpression
MixinExpression is an expression, not a type.
template Foo(T = mixin(getTypeName())) { }
^
There should be a type.
And the text contents of the string must be compilable as a valid AssignExpression.
Comment #2 by dlang+issues — 2012-06-17T01:37:22Z
Oh hmm, I see... any chance that it might be allowed at some point? :D