Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlekseyTs opened this issue Sep 3, 2019 · 1 comment
Labels
Area-Compilers Bug Concept-Diagnostic Clarity The issues deals with the ease of understanding of errors and warnings. help wanted The issue is "up for grabs" - add a comment if you are interested in working on it Language-C#
Milestone

Comments

@AlekseyTs
Copy link
Contributor

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.

@gafter
Copy link
Member

gafter commented Sep 3, 2019

The same is true if C100 is an interface.

@gafter gafter added Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it labels Sep 3, 2019
@gafter gafter added this to the Compiler.Next milestone Sep 3, 2019
@jaredpar jaredpar modified the milestones: Compiler.Next, Backlog Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Bug Concept-Diagnostic Clarity The issues deals with the ease of understanding of errors and warnings. help wanted The issue is "up for grabs" - add a comment if you are interested in working on it Language-C#
Projects
None yet
Development

No branches or pull requests

3 participants