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

DRAFT: adjust to find upcast new redundant #577

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jp-fournier-dev
Copy link
Contributor

@jp-fournier-dev jp-fournier-dev commented Oct 21, 2022

  • Don't raise redundant new keyword if in an upcast expression and the type implements IDisposable
  • Add test to cover this use case

Fixes #572

@knocte
Copy link
Collaborator

knocte commented Oct 22, 2022

Good work! Is this PR finished? I ask because it's still marked as DRAFT, but I feel it can already be merged since you added a unit test and your code doesn't break any (old&new) tests.

@jp-fournier-dev
Copy link
Contributor Author

It does add a test but doesn’t really add anything. I’ll make it work properly and then we can merge and fix the issue

@knocte knocte changed the title Adjust to find upcast new redundant DRAFT: adjust to find upcast new redundant Dec 19, 2023
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.

RedundantNewKeyword is raised on a type inheriting from an interface that inherits IDisposable
2 participants