dotnet/roslyn
Voir sur GitHubRenaming a global using alias does not update usages
Open
#74 474 ouverte le 22 juil. 2024
Area-IDEBughelp wanted
Métriques du dépôt
- Stars
- (20 414 stars)
- Métriques de merge PR
- (Merge moyen 6j 17h) (256 PRs mergées en 30 j)
Description
Version Used: 17.11.0 Preview 3.0
Steps to Reproduce: Test1.cs
global using MyInteger = int; // Rename here…
Test2.cs
public class C {
public MyInteger M() => 42; // …or here
}
Rename the MyInteger using alias in any of the two places.
Expected Behavior: The using alias should be updated in both places.
Actual Behavior: Only the using alias declaration is updated. This looks especially weird when you start the rename from the usage.