dotnet/roslyn
Make Method Async renames wrong method if a method with the same name already exists
开放
#47,155 创建于 2020年8月26日
Area-IDEBugFeature - Renamehelp wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
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;
}