Closed zenorbi closed 1 year ago
Given the following code, the variable foo is definitely a reference type, but I get a warning for
foo
Possible boxing allocation: type testing 'TFoo' value for 'IDisposable' type possibly requires boxing of value type
void GenericMethod<TFoo>(TFoo foo) where TFoo : class { if (foo is IDisposable disposable) { } }
Thanks for reporting! Fixed during boxing analyzer rewrite.
Given the following code, the variable
foo
is definitely a reference type, but I get a warning for