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

InlineArray's Equals and GetHashCode throw #103612

Merged
merged 5 commits into from
Jun 20, 2024

Conversation

AaronRobinsonMSFT
Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT commented Jun 18, 2024

The default Equals() and GetHashCode() throw
for types marked with InlineArrayAttribute.

Fixes #96943

See documentation update at dotnet/dotnet-api-docs#10036

The default Equals() and GetHashCode() throw
for types marked with InlineArrayAttribute.
@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 9.0.0 milestone Jun 18, 2024
@AaronRobinsonMSFT AaronRobinsonMSFT changed the title InlineArray's Equals and GetHashCode throw InlineArray's Equals and GetHashCode throw Jun 18, 2024
Add test for types where their layout is the same
whether InlineArray is provided or not.
@AaronRobinsonMSFT AaronRobinsonMSFT marked this pull request as ready for review June 18, 2024 23:20
@AaronRobinsonMSFT AaronRobinsonMSFT added the breaking-change Issue or PR that represents a breaking API or functional change over a prerelease. label Jun 20, 2024
@dotnet-policy-service dotnet-policy-service bot added the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Jun 20, 2024
@AaronRobinsonMSFT AaronRobinsonMSFT merged commit b0c4728 into dotnet:main Jun 20, 2024
140 of 159 checks passed
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the runtime_96943 branch June 20, 2024 18:10
@AaronRobinsonMSFT AaronRobinsonMSFT removed the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Jun 20, 2024
rzikm pushed a commit to rzikm/dotnet-runtime that referenced this pull request Jun 24, 2024
* InlineArray's Equals and GetHashCode throw

The default Equals() and GetHashCode() throw
for types marked with InlineArrayAttribute.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Runtime.CompilerServices breaking-change Issue or PR that represents a breaking API or functional change over a prerelease.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inline array Equals unexpected behavior
6 participants