diff --git a/source/poodinis/factory.d b/source/poodinis/factory.d index 05085c5..ff816d0 100644 --- a/source/poodinis/factory.d +++ b/source/poodinis/factory.d @@ -167,7 +167,7 @@ class ConstructorInjectingInstanceFactory(InstanceType) : InstanceFactory argumentList ~= ","; } - argumentList ~= "container.resolve!" ~ param.stringof; + argumentList ~= "container.resolve!(" ~ param.stringof ~ ")"; } return argumentList; }