"Extract method" with a generic local function creates invalid code #22597
Labels
Area-IDE
Feature - Extract Method
Feature - Local Functions
Local Functions
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Version Used: VS 15.3.5
Steps to Reproduce:
Run "Extract Method" on the entire contents of
test
Expected Behavior:
Actual Behavior:
NewMethod
gets a generic parameter that isn't available at the call site (error) and generates a warning for theT
onfoo
withinNewMethod
due to having the same name asNewMethod
'sT
.The text was updated successfully, but these errors were encountered: