dotnet/roslyn
Make Method Async renames wrong method if a method with the same name already exists
Offen
#47.155 geöffnet am 26.08.2020
Area-IDEBugFeature - Renamehelp wanted
Repository-Metriken
- Stars
- (20.414 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)
Beschreibung
Version Used: VS 16.7.2
Steps to Reproduce: Create the following Methods
static int Foo()
{
return 42;
}
static int Foo()
{
await Task.Delay(42);
return 1;
}
Place the cursor on the await and select Make method async refactoring
Expected Behavior:
static int Foo()
{
return 42;
}
static async Task<int> FooAsync()
{
await Task.Delay(42);
return 1;
}
Actual Behavior:
static int FooAsync()
{
return 42;
}
static async Task<int> Foo()
{
await Task.Delay(42);
return 1;
}