mirror of
https://github.com/mbierlee/poodinis.git
synced 2024-11-15 04:04:01 +01:00
Fix else case not being properly excluded from compiled code
This commit is contained in:
parent
ea41a04657
commit
c75b025a68
|
@ -129,7 +129,7 @@ private void autowireMember(string member, size_t memberIndex, Type)(shared(Depe
|
|||
foreach(attribute; __traits(getAttributes, Type.tupleof[memberIndex])) {
|
||||
static if (is(attribute == Autowire!T, T)) {
|
||||
injectInstance!(member, memberIndex, typeof(attribute.qualifier))(container, instance);
|
||||
} else if (__traits(isSame, attribute, Autowire)) {
|
||||
} else static if (__traits(isSame, attribute, Autowire)) {
|
||||
injectInstance!(member, memberIndex, UseMemberType)(container, instance);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue