-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Extract Method on part of an expression generates invalid code #38087
Comments
This could be a problem in IDE code or in dataflow analysis. We'll see once we take a closer look at the bug. |
@RikkiGibson this appears to be an issue with dataflow analysis. We ask for dataflow on the I debugger to this point:
At which point |
This is where we set that it's bad: In this callstack:
|
Passing to compiler to take a look. |
Version Used:
Visual Studio 2019 version 16.2.2
Steps to Reproduce:
i + j
and perform an Extract Method refactoring.Expected Behavior:
Extract Method generates
NewMethod(int i, int j)
:Actual Behavior:
Extract Method generates
NewMethod()
without parameters to pass ini
andj
:The text was updated successfully, but these errors were encountered: