diff --git a/source/poodinis/container.d b/source/poodinis/container.d index 11e7ca6..fa52536 100644 --- a/source/poodinis/container.d +++ b/source/poodinis/container.d @@ -407,7 +407,7 @@ synchronized class DependencyContainer { static if (__traits(compiles, TemplateArgsOf!Type)) { foreach(TemplateArgType; TemplateArgsOf!Type) { static if (!isBuiltinType!TemplateArgType) { - imports ~= "import " ~ moduleName!TemplateArgType ~ ";"; + imports ~= createImportsString!TemplateArgType; } } }