We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Extract method ref M() in:
ref M()
class Program { public ref int M() { return ref M(); // extract method on the returned expression } }
Expected: The returned value should still be marked ref and the generated method should be marked ref
ref
class Program { public ref int M() { return ref NewMethod(); } private ref int NewMethod() { return ref M(); // Extract method on this } }
Actual: Neither location is marked ref, causing two errors.
class Program { public ref int M() { return NewMethod(); // CS 8895 } private int NewMethod() { return ref M(); // Extract method on this // CS 8894 } }
The text was updated successfully, but these errors were encountered:
@jaredpar - here's another for the compiler.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Extract method
ref M()
in:Expected: The returned value should still be marked
ref
and the generated method should be markedref
Actual: Neither location is marked
ref
, causing two errors.The text was updated successfully, but these errors were encountered: