The CC0022 DisposableVariableNotDisposedAnalyzer is flagging a return of an IDisposable in an expression bodied while not on a "normal" member.
class D : IDisposable
{
void IDisposable.Dispose() { }
}
public class C
{
public IDisposable M1() => new D();
public IDisposable M2()
{
return new D();
}
}

The CC0022 DisposableVariableNotDisposedAnalyzer is flagging a return of an
IDisposablein an expression bodied while not on a "normal" member.