Skip to content
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

Cannot shim constrained virtual method call on .NET 6+ #49

Open
Miista opened this issue Apr 12, 2024 · 1 comment
Open

Cannot shim constrained virtual method call on .NET 6+ #49

Miista opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working priority: medium The issue has medium priority

Comments

@Miista
Copy link
Owner

Miista commented Apr 12, 2024

See test Can_shim_constrained_virtual_method_of_any_instance which has been disabled on .NET 6 and upwards. The test code is currently only in branch https://github.com/Miista/pose/tree/31-add-support-for-shimming-operators

@Miista Miista added bug Something isn't working priority: medium The issue has medium priority labels Apr 12, 2024
@Miista
Copy link
Owner Author

Miista commented Jun 5, 2024

It seems that this might be caused by the constrained opcode not being emitted. It is, however, weird that this is only an issue on .NET 6 and upwards.

I think an approach would be to write the code by hand and see how it gets translated into IL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: medium The issue has medium priority
Projects
None yet
Development

No branches or pull requests

1 participant