Skip to content

"is not implemented" error hides semantic errors in methods #21162

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

Open
VPanteleev-S7 opened this issue Apr 6, 2025 · 1 comment
Open

"is not implemented" error hides semantic errors in methods #21162

VPanteleev-S7 opened this issue Apr 6, 2025 · 1 comment

Comments

@VPanteleev-S7
Copy link

VPanteleev-S7 commented Apr 6, 2025

interface I
{
	void m();
}

final class C : I  // test.d(6): Error: class `test.C` interface function `void m()` is not implemented
{
	void hasError()
	{
		somethingCrazy(); // ... but ... no complaints about this line?
	}
}

When implementing a non-trivial interface, it's more useful to have semantic errors in the methods that are in the process of being implemented, rather than halting compilation simply because one method is missing.

This seems to be a regression, introduced in D 2.093.0.

@CyberShadow
Copy link
Member

This seems to be a regression, introduced in D 2.093.0.

Introduced in #11191.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants