Skip to content

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

Merged
jkotas merged 1 commit into
dotnet:mainfrom
terrajobst:fix-enum-constraint
Apr 10, 2024
Merged

Adds back Enum constraint to Enum.GetNames<TEnum>()#100844
jkotas merged 1 commit into
dotnet:mainfrom
terrajobst:fix-enum-constraint

Conversation

@terrajobst

Copy link
Copy Markdown
Contributor

This partially addresses #100843

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

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
Copy Markdown
Member

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

@ericstj

ericstj commented Apr 10, 2024

Copy link
Copy Markdown
Member

Yeah. #100843.
Also dotnet/sdk#39659

@stephentoub

Copy link
Copy Markdown
Member

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

@ericstj

ericstj commented Apr 10, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

Thanks

@terrajobst

Copy link
Copy Markdown
Contributor Author

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

@jkotas jkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

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