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

RCS1234 false positive #1123

Closed
josefpihrt opened this issue Jul 21, 2023 · 0 comments · Fixed by #1233
Closed

RCS1234 false positive #1123

josefpihrt opened this issue Jul 21, 2023 · 0 comments · Fixed by #1233

Comments

@josefpihrt
Copy link
Collaborator

josefpihrt commented Jul 21, 2023

Product and Version Used: 4.3.0

Steps to Reproduce:

public enum Foo
{
    [Obsolete]
    Bar = 1,

    Baz = 1, // RCS1234
}

If Bar is obsolete it should not be used as a replacement for 1 because that would produce compiler warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant