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

Spurious "does not override any function" when the inherited interface has errors #21178

Open
VPanteleev-S7 opened this issue Apr 8, 2025 · 0 comments

Comments

@VPanteleev-S7
Copy link

interface IFoo
{
	void foo();
	UnknownType bar();
}

abstract class Foo : IFoo
{
	override void foo() {}
}

Compiler output:

test.d(4): Error: undefined identifier `UnknownType`
test.d(9): Error: function `test.Foo.foo` does not override any function

The error on line 9 is spurious. The Foo class is perfectly fine, the problem is contained entirely in IFoo.

@VPanteleev-S7 VPanteleev-S7 changed the title Spurious "does not override any function" when the inherited class has errors Spurious "does not override any function" when the inherited interface has errors Apr 8, 2025
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

1 participant