Closed manfred-brands closed 1 month ago
Hi @manfred-brands! I confirm this as a FP. I already added the reproducer and fixed the issue; it was a low-hanging fruit. You will not experience it anymore starting from the next release, enjoy!
@CristianAmbrosini Thanks, but I don't see neither a PR or changes to master with a fix so how can this be closed? Did you forgot to push your changes?
Description
S2953 raised a false positive on a
static
class.Repro steps
We have an extension method on
Lazy
to dispose it, but only if the value was created.Expected behavior
S2953 is not raised.
Actual behavior
S2953 is raised.
Known workarounds
Suppress
Related information