From af7d6a78724ffaeaac80576b7420b74d543337ae Mon Sep 17 00:00:00 2001 From: Mike Bierlee Date: Thu, 12 Jun 2014 01:46:05 +0200 Subject: [PATCH] Also autowire baseclass members --- source/poodinis/autowire.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/poodinis/autowire.d b/source/poodinis/autowire.d index 84840e0..4a13fa1 100644 --- a/source/poodinis/autowire.d +++ b/source/poodinis/autowire.d @@ -19,7 +19,7 @@ debug { class Autowire{}; public void autowire(Type)(Container container, Type instance) { - foreach (member ; __traits(derivedMembers, Type)) { + foreach (member ; __traits(allMembers, Type)) { foreach (attribute; mixin(`__traits(getAttributes, Type.` ~ member ~ `)`) ) { if (is(attribute : Autowire) && __traits(getMember, instance, member) is null){ alias TypeTuple!(__traits(getMember, instance, member)) memberReference;