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

Report only non-overridden unimplemented members #21337

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Aug 6, 2024

Previously, when a concrete class A had unimplemented members that are overridden, all overrides would be reported as unimplemented in the error message. This would produce error messages that are not accurate, and that suggest stubs that are not correct.

This patch fixes the issue by reporting in the error message only the unimplemented members that are not overridden by other unimplemented members.

Fixes #21335

Previously, when a concrete class A had unimplemented members that are
overridden, all overrides would be reported as unimplemented in the
error message. This would produce error messages that are not accurate,
and that suggest stubs that are not correct.

This patch fixes the issue by reporting in the error message only the
unimplemented members that are not overridden by other unimplemented
members.

Fixes scala#21335
@sjrd sjrd merged commit 8897dc4 into scala:main Aug 8, 2024
28 checks passed
@Duhemm Duhemm deleted the 21335-unimplemented-members branch August 8, 2024 08:08
@OndrejSpanel
Copy link
Member

How is this related to #19800 (#19731)?

WojciechMazur added a commit that referenced this pull request Aug 28, 2024
…21484)

Backports #21337 to the 3.5.2 branch.

PR submitted by the release tooling.
[skip ci]
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

Successfully merging this pull request may close these issues.

Wrong unimplemented members reported
3 participants