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

Ignore unused parameters when function in abstract class is empty #270

Merged
merged 3 commits into from
Aug 13, 2022

Conversation

sirbrillig
Copy link
Owner

This allows non-abstract methods inside an abstract class to have unused parameters if the method body does nothing. Such methods are effectively optional abstract methods so their unused parameters should be ignored as we do with abstract method parameters.

Fixes #133

@sirbrillig sirbrillig merged commit 567221e into 2.x Aug 13, 2022
@sirbrillig sirbrillig deleted the allow-empty-body-for-abstract-methods-without-unused branch August 13, 2022 21:40
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.

Unused parameters in methods in abstract classes
1 participant