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