mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Recursively import template type's modules
In case when the template type itself is a template type. Fixes #20
This commit is contained in:
parent
4c25b91c63
commit
91fcefa7ed
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue