class test { static char[] c(){return "a";} int a; class b { mixin(c()); } } void main() { } don't u think my example should compile? i don't violate any thing from evaluating func c from compile-time