Extract Method on part of an expression generates invalid code #38087
Labels
Area-IDE
Bug
Feature - Extract Method
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
IDE-CodeStyle
Built-in analyzers, fixes, and refactorings
Projects
Milestone
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: