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.

贡献者指南