diff --git a/source/poodinis/dependency.d b/source/poodinis/dependency.d index bf59a42..1e91bed 100644 --- a/source/poodinis/dependency.d +++ b/source/poodinis/dependency.d @@ -99,7 +99,7 @@ class DependencyContainer { if (!autowireStack.canFind(registration)) { autowireStack ~= registration; - this.autowire!(RegistrationType)(instance); + this.autowire!(QualifierType)(cast(QualifierType)instance); autowireStack.popBack(); }