-
Notifications
You must be signed in to change notification settings - Fork 233
Provide requested type as factory param #129
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
Provide requested type as factory param #129
Conversation
|
Could you please add a test for this |
|
I'll see what I can do but it probably won't be for a few days given my work schedule. |
86ddc20 to
ee3c4cb
Compare
|
@niemyjski I've added a test for |
|
Thanks for the updates. Is there any way we can resolve the failing tests, they were all green before this but I get enabling a flag may break others but we need to keep the build passing. |
|
I see two options:
I have no problem with bumping this PR's branch back to b8f7bd2 and providing a separate PR for enabling the RESOLVE_OPEN_GENERICS tests. That other PR would by necessity include #137's commits within it though, due to the conflict that would otherwise occur if both that and this are merged together. Let me know which way we should take this. |
|
I'd like to go with #1, is there any chance you could fork his fork and submit a new pr with the requested changes? |
|
I'll give it a shot during my lunch break today. |
|
@niemyjski I just created #141 which is the same as #137 with commit ee3c4cb cherry-picked onto it. That takes care of moving RESOLVE_OPEN_GENERICS to the project file, but I can't answer your other concern with #137. After it's merged in, I can rebase this PR's branch and it should pass all tests (including the new one for its functionality). |
|
Thanks for the update! I just merged it in, let me know when you rebase and this is good to be merged in. |
For `RESOLVE_OPEN_GENERICS` add a new "__requestedType" parameter when calling a factory method providing the type object for the type being resolved. This allows factory methods for registered open generic types to properly resolve the particular closed generic type requested.
ee3c4cb to
ae7e0dd
Compare
|
@niemyjski and we are good to go! |
|
Thanks for the pr |
|
why this is only for conditional compilation? |
|
@khanyuriy Can you please elaborate further |
For
RESOLVE_OPEN_GENERICSadd a new "__requestedType" parameter when calling a factory method providing the type object for the type being resolved. This allows factory methods for registered open generic types to properly resolve the particular closed generic type requested.