-
Notifications
You must be signed in to change notification settings - Fork 103
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
Try to fix rewrite for self file extension method #117
Comments
Thanks - I think extensions are also part of other feature. Off top of my head there were some more issues with that unfortunately. I think especially for rewritten code where YourType would end up YourType__Patched_ and extension method will complain. We could probably cast it to (ProperType)(dynamic)variable. That's a hack for compiler as your variable is still of old type, same approach is used for something else already (I think for 'this' rewritting) |
Is it not possible for rewriting extension methods yet now? Currently I’m working with one ECS framework of Unity, and it uses extension method almost everywhere :( |
sorry, I've not had a chance to get to it. I could point you in the right direction if you want to give that a try |
Hi, let's try to make a rewriter for extension methods. It would allow to avoid ambiguous call compilation errors :
The text was updated successfully, but these errors were encountered: