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

Adds back Enum constraint to Enum.GetNames<TEnum>() #100844

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

terrajobst
Copy link
Member

This partially addresses #100843

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Apr 9, 2024

This comment was marked as resolved.

@terrajobst terrajobst added area-System.Runtime and removed new-api-needs-documentation needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Apr 9, 2024
@stephentoub
Copy link
Member

When was this removed? Was that recently / accidentally as part of Jan's reformat of the ref?

@ericstj
Copy link
Member

ericstj commented Apr 10, 2024

Yeah. #100843.
Also dotnet/sdk#39659

@stephentoub
Copy link
Member

I assume we double checked to ensure nothing else was accidentally changed?

@ericstj
Copy link
Member

ericstj commented Apr 10, 2024

I did another pass of Jan's PR. I couldn't find any more diffs. I did one full pass of all the code, then another pass looking at all generic constraints.

In general we can trust APICompat to keep us safe - but it has a gap here with generic constraints.

@stephentoub
Copy link
Member

Thanks

@terrajobst
Copy link
Member Author

What's the verdict on the test failures? They seem unrelated (timeout on the WASM test side).

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thank you!

@jkotas jkotas merged commit 91d3051 into dotnet:main Apr 10, 2024
84 of 87 checks passed
@terrajobst terrajobst deleted the fix-enum-constraint branch April 12, 2024 04:30
matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants