The "Extract method" refactoring should recognize primary constructor parameters #73044
Labels
Area-IDE
Feature Request
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Version Used:
17.10.0 Preview 3.0
Steps to Reproduce:
Run "Extract method" on the return statement:
Expected Behavior:
The primary constructor parameter should be used in the generated method, so the method should have no parameters:
Actual Behavior:
The primary constructor parameter is converted to a method parameter and either shadows the primary constructor parameter if it needs to be an instance method or the method becomes static.
The text was updated successfully, but these errors were encountered: