On Saturday, 25 October 2014 at 13:45:29 UTC, Rares Pop wrote:
What do you mean by copy/pasting ?
I literally copied the code in your post (and fixed a missing semicolon) and got it to compile.
Passing A as an argument to injections should work. You can also use this and typeof(this) inside the injections template code to access the class. It should all work.