FSharpLint
FSharpLint copied to clipboard
DRAFT: adjust to find upcast new redundant
- Don't raise redundant
newkeyword if in an upcast expression and the type implements IDisposable - Add test to cover this use case
Fixes #572
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.
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