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

Add tests for anonymous enums #194

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

reflectronic
Copy link
Contributor

Do not use the mangled anonymous name in using static directives. Additionally, a using static directive should not be added when members of the enum are already available in context (for example, when inside the method class.)

@reflectronic reflectronic marked this pull request as draft January 11, 2021 07:37
Base automatically changed from master to main March 22, 2021 01:41
@tannergooding
Copy link
Member

@reflectronic are you interested in taking this forward still?

@reflectronic
Copy link
Contributor Author

Looks like the tests I added are passing in main as-is, so I'll just update this PR to add these tests (anonymous enums seem to be untested currently).

@reflectronic reflectronic reopened this Oct 12, 2022
@reflectronic reflectronic marked this pull request as ready for review October 12, 2022 07:43
@reflectronic reflectronic changed the title Fix using static behavior for anonymous enums Add tests for anonymous enums Oct 12, 2022
@tannergooding tannergooding merged commit 57b5c0d into dotnet:main Oct 12, 2022
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

Successfully merging this pull request may close these issues.

2 participants