dotnet/roslyn

Confusing error message when the target member cannot be located for an explicit interface implementation

开放

#38,467 创建于 2019年9月3日

 (1 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-CompilersBugConcept-Diagnostic ClarityLanguage-C#help wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

interface I100 { }

class C100 : I100
{
    object I100.M4() => null;
}

Observed:

 error CS0539: 'C100.M4()' in explicit interface declaration is not found among members of the interface that can be implemented

But C100 doesn't have member named M4.

贡献者指南