Recursively import template type's modules

In case when the template type itself is a template type. Fixes #20
This commit is contained in:
Mike Bierlee 2017-08-13 17:56:34 +02:00
parent 4c25b91c63
commit 91fcefa7ed

View file

@ -407,7 +407,7 @@ synchronized class DependencyContainer {
static if (__traits(compiles, TemplateArgsOf!Type)) { static if (__traits(compiles, TemplateArgsOf!Type)) {
foreach(TemplateArgType; TemplateArgsOf!Type) { foreach(TemplateArgType; TemplateArgsOf!Type) {
static if (!isBuiltinType!TemplateArgType) { static if (!isBuiltinType!TemplateArgType) {
imports ~= "import " ~ moduleName!TemplateArgType ~ ";"; imports ~= createImportsString!TemplateArgType;
} }
} }
} }