ClangSharp icon indicating copy to clipboard operation
ClangSharp copied to clipboard

Fix using static behavior for anonymous enums

Open reflectronic opened this issue 4 years ago • 1 comments

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 avatar Jan 11 '21 07:01 reflectronic

@reflectronic are you interested in taking this forward still?

tannergooding avatar Jul 30 '22 17:07 tannergooding

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 avatar Oct 12 '22 07:10 reflectronic