Why does the code below generate the linking error undefined reference to <class> template ok(T) { class T { } } class test; mixin ok!(test); void main() { test t = new test(); }