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

SA1513 falsely reported when using object initializer without asigning the object to a variable. #1301

Closed
EdwinEngelen opened this issue Aug 27, 2015 · 2 comments
Assignees
Milestone

Comments

@EdwinEngelen
Copy link
Contributor

The code below signals SA1513 (Closing curly bracket must be followed by blank line) near the semi-colon, but it shouldn't.

if (true)
{
    new Point()
    {
        X = 42,
    };
}
@sharwell
Copy link
Member

This is another case similar to #613.

@Noryoko
Copy link
Contributor

Noryoko commented Aug 28, 2015

Grabbing.

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

No branches or pull requests

3 participants