[x] I have verified that I am running the latest version of DisposableFixer: 1.0.0
[x] I have searched open and closed issues to ensure it has not already been reported
Description
When converting an statement body to an expression body, the IDisposable that gets returned is marked as undisposed, but it should not because it is a factory method.
Source Code
namespace SomeNamespace
{
class SomeClass
{
public IDisposable Bla() => new MemoryStream();
}
}
Prerequisites
Description
When converting an statement body to an expression body, the IDisposable that gets returned is marked as undisposed, but it should not because it is a factory method.
Source Code
Screenshot