dotnet/roslyn
Analyzer renaming method name ignores operand of method address expression
オープン
#50,077 opened on 2020/12/19
Area-IDEBugFeature - RenameIDE-CodeStylehelp wanted
Repository metrics
- Stars
- (20,414 個のスター)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 256 merged PRs)
説明
Version Used: Visual Studio 16.8.2
Steps to Reproduce:
- In any C# source file, type:
class A
{
private unsafe static void M1()
{
var xx = (delegate*<void>)(&M1);
}
}
- Change the name of
M1toM2and use the "Rename 'M1' to 'M2'" refactoring action in VS.
Expected Behavior:
The expression in the initializer of xx changed to (delegate*<void>)(&M2).
Actual Behavior:
The expression in the initializer of xx remain unchanged as (delegate*<void>)(&M1).