-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class annotated with @Implementation cannot have constructor with argument of parametrised type. #1
Comments
Before getting a dependency from the scope someone needs to put this dependency into the scope. How would you write the code for putting it in this particular case? |
As |
And in case when I put
which value should be provided to constructor of |
I believe it is a design decision. |
I was thinking about adding qualifiers later on, but they won't help here. It will still be possible to add both I'm going to disallow generics in implementation constructors for now. However compiler will fail with a meaningful message. |
Moreover, it is always possible to resolve this ambiguity manually in the constructor. Just add |
If my implementation has input argument of parametrised type
T
like this:then compilation of generated class
MagnetFooImplFactory
gets failed:The text was updated successfully, but these errors were encountered: