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

#pragma or trailing comment causes breaking in Object Initializer #252

Closed
belav opened this issue Jun 1, 2021 · 0 comments · Fixed by #367
Closed

#pragma or trailing comment causes breaking in Object Initializer #252

belav opened this issue Jun 1, 2021 · 0 comments · Fixed by #367
Milestone

Comments

@belav
Copy link
Owner

belav commented Jun 1, 2021

The two entries with #pragma and trailing comments shouldn't be breaking, this was introduced with 0.9.4 or 0.9.5

        public static TheoryData<Encoding> Encodings =>
            new TheoryData<Encoding>
            {
                { Encoding.ASCII },
                { Encoding.BigEndianUnicode },
                { Encoding.Unicode },
                { Encoding.UTF32 },
#pragma warning disable CS0618, SYSLIB0001 // Type or member is obsolete
                {
                    Encoding.UTF7
                },
#pragma warning restore CS0618, SYSLIB0001 // Type or member is obsolete
                {
                    Encoding.UTF8
                }
            };
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