dotnet/roslyn

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

Aberta

#38.467 aberto em 3 de set. de 2019

 (1 comentário) (0 reação) (0 responsável)C# (4.257 forks)batch import
Area-CompilersBugConcept-Diagnostic ClarityLanguage-C#help wanted

Métricas do repositório

Stars
 (20.414 estrelas)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)

Description

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.

Guia do colaborador