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

SA1500 (Curly brackets for multi-line statements must not share a line) wrongly raised for extension method on a collection with a collection initializer #1202

Closed
oatkins opened this issue Aug 13, 2015 · 1 comment
Assignees
Milestone

Comments

@oatkins
Copy link
Contributor

oatkins commented Aug 13, 2015

The following code gives SA1500 with the analyzer but not with legacy SC:

public void Fish()
{
    var someList = new List<int>
                   {
                       1,
                       2,
                       3
                   }.Select(x => x.ToString());
}
@Noryoko
Copy link
Contributor

Noryoko commented Aug 13, 2015

Grabbing this.

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