-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Fix or support return ref value #415
Labels
Comments
@quifi Thank you for the reporting and for the 2 other issues |
@quifi I have checked your sample, but I don't see So the current FEC output is fine, I think. |
@quifi The new FEC v4.2.1 with the fixes is released. |
In order to reproduce the bug, I think 'Bar' should return int, instead of int&. With v4.2.1, this one seems not fixed yet. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With C#, we can return a ref value:
System expression simply says it is not supported
LightExpression supports return ref value, but sometimes fails to unref returned ref value.
e.g.
emits
See the "ReadReturnedRef" test case of attached source file.
ReturnRef.zip
I tried to add a
EmitLoadIndirectlyByRef
after eachDemit(OpCodes.Call)
, which seemed worked.The text was updated successfully, but these errors were encountered: