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

Invalid fix of RCS0053 when preprocessor directives are present #1548

Closed
josefpihrt opened this issue Oct 5, 2024 · 1 comment · Fixed by #1547
Closed

Invalid fix of RCS0053 when preprocessor directives are present #1548

josefpihrt opened this issue Oct 5, 2024 · 1 comment · Fixed by #1547
Assignees

Comments

@josefpihrt
Copy link
Collaborator

Product and Version Used:

Steps to Reproduce:

#define FOO
using System.Collections.Generic;

class C
{
    void M()
    {
        var x = new List<string>(new string[]
            {
                "",
                "",
#if FOO
                "",
#endif
            });
    }
}

Actual Behavior:

#define FOO
using System.Collections.Generic;

class C
{
    void M()
    {
        var x = new List<string>(new string[]
        {
            "",
            "",
#if FOO
                "",
#endif
            });
    }
}

Expected Behavior:

#define FOO
using System.Collections.Generic;

class C
{
    void M()
    {
        var x = new List<string>(new string[]
        {
            "",
            "",
#if FOO
            "",
#endif
        });
    }
}
@josefpihrt
Copy link
Collaborator Author

fixed with #1547

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