-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Feature 'byref locals and returns' is not available in C# 6. #2115
Comments
And what code do you propose ILSpy should emit instead? Note that the obvious
would be incorrect: the IL code does not call |
dnSpy has a bug there, we fixed that in #2050. |
Maybe we should reintroduce the #2050 bug when a language version <C# 6 is selected? |
…de#2050 when a language version <=C# 5 is selected.
ILSpy uses byref feature even in older C# lang versions, which does not know about it.
Proposal is to use this feature only if C#7 and higher is selected, if not - do not use byref feature
Example
Erroneous output
If the output fails to re-compile, provide the compiler error message.
If the output has the wrong behavior, explain how it differs from the expected behavior.
Details
The text was updated successfully, but these errors were encountered: