ok, it seems that it doesn't work with ctfe's generating the mix. I guess Bothe's analysis doesn't evaluate the ctfe. using a mixin works by hard coding the string. string inty(alias a)() { return "int y;"; } class A { mixin("int x;"); mixin(inty!("...")); // does not show up in intellisense }