1 module imports.imp12242a; 2 3 public: 4 import imports.imp12242a1; // std.string 5 import imports.imp12242a2; // std.algorithm 6 7 8 private mixin template MixTmp(T, int x) 9 { 10 template foo(U) if (is(U == T)) 11 { 12 enum foo = x; 13 } 14 } 15 16 mixin MixTmp!(int, 1); 17 mixin MixTmp!(long, 2);