Reduced std.uni --- test3 --- string test1() { import test3a; import std.conv : to; uint a; //B.c(); string s = to!string(a); B.c(); return s; } int main(){ return 0; } --- test3a --- alias B = A!int; template A(T) { string c() { import std.format : format; return format("%s",""); } } ---