Skip to content

Conversation

BillWagner
Copy link
Member

Fixes #29471

When a type declares a static member with the same signature as an interface it implements, it's not an override. Nor does it hide the method. Instead, it's a unique method declared in a different type.

Fixes dotnet#29471

When a type declares a static member with the same signature as an interface it implements, it's not an override. Nor does it hide the method. Instead, it's a unique method declared in a different type.
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question/suggestion.

@BillWagner BillWagner added the okr-freshness OKR: Freshness of content label May 26, 2022
@BillWagner BillWagner merged commit 1384b58 into dotnet:main May 26, 2022
@BillWagner BillWagner deleted the clarify-static-reimplementation branch May 26, 2022 20:34
@BillWagner BillWagner restored the clarify-static-reimplementation branch May 26, 2022 20:48
@BillWagner BillWagner deleted the clarify-static-reimplementation branch May 31, 2022 21:22
baronfel pushed a commit to baronfel/dotnet-docs that referenced this pull request Jun 21, 2022
* clarify how type can declare new static members

Fixes dotnet#29471

When a type declares a static member with the same signature as an interface it implements, it's not an override. Nor does it hide the method. Instead, it's a unique method declared in a different type.

* Move static description to a note.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Static members of an interface can also be re-implemented
3 participants