Skip to content

C# VS2022 Bug when trying to rename variables in local static functions. #60728

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


The VS Rename Dialog reports an "unresolvable conflict" for duplicate var names.
This is logical correct for non-static local functions but not for static ones.
(The C# compiler accepts duplicate names in such configuration of course)

image


Original Comments

Feedback Bot on 4/11/2022, 03:02 AM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Labels

Area-IDEBugDeveloper CommunityThe issue was originally reported on https://developercommunity.visualstudio.comFeature - Renamehelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

Type

No type

Projects

Status

InQueue

Relationships

None yet

Development

No branches or pull requests

Issue actions