int foo(string s1, string s2)() { __totype(s1) x = 4; mixin(s2) y = 3; return x + y; } enum i = foo!("i", "int")();