-
-
Notifications
You must be signed in to change notification settings - Fork 153
Retrieval by instance name does not work #35
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
Comments
Alternatively you might want to go ahead and get the object from the factory then see if the object returned from the factory is T which would let you retrieve a named instance using a super class type as in:
|
Yep, this is already fixed in master, see: As a workaround until a new release is shipped, you can just replace the type parameters with |
@knaeckeKami Unfortunately, I think markdown syntax swallowed what you were trying to say. |
My bad, edited. |
Should be fixed with new version V3.1.0. |
Uh oh!
There was an error while loading. Please reload this page.
Consider this simple example:
This fails with this output:
I think the problem is this code:
registrationType has a type of
Type
so this code is asking whether an instance ofType
has the typeString
and the answer is of course no. I think you want to replaceis!
with!=
.The text was updated successfully, but these errors were encountered: