Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDISP010 False warning when base method is abstract #575

Open
Emik03 opened this issue Oct 30, 2024 · 0 comments
Open

IDISP010 False warning when base method is abstract #575

Emik03 opened this issue Oct 30, 2024 · 0 comments

Comments

@Emik03
Copy link

Emik03 commented Oct 30, 2024

Classes like the standard library's MemoryManager<T> have an abstract dispose method, which cannot be called despite the lint asking for it to be invoked.

sealed class Manager : MemoryManager<byte>
{
    /// <inheritdoc />
    public override void Unpin() { }

    /// <inheritdoc />
    public override unsafe MemoryHandle Pin(int elementIndex = 0) => default;

    /// <inheritdoc />
    public override unsafe Span<byte> GetSpan() => default;

    /// <inheritdoc />
    protected override void Dispose(bool disposing) { } // <-- lint occurs here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant