dotnet/roslyn

Rename doesn't resolve conflict via callsite cast

Open

#8,296 建立於 2016年2月2日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)C# (4,257 fork)batch import
Area-IDEFeature - Renamehelp wanted

倉庫指標

Star
 (20,414 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 256 個 PR)

描述

interface IX
{
    void M(); 
} 
interface IY : IX
{
    int A(); 
} 

class C
{
    void Foo()
    {
        IY y = null; 
        y.M();
    }
}

Rename A to M.

Roslyn will show an unresolvable conflict, instead of casting the callsite to IX to call the base method.

貢獻者指南