From 91fcefa7ed29a14b05aab817092788ffaf7b3144 Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Sun, 13 Aug 2017 17:56:34 +0200 Subject: [PATCH] Recursively import template type's modules In case when the template type itself is a template type. Fixes #20 --- source/poodinis/container.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } }