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

SA1003 violation if using postfix increment in object initializer #1600

Closed
appel1 opened this issue Oct 6, 2015 · 1 comment
Closed

SA1003 violation if using postfix increment in object initializer #1600

appel1 opened this issue Oct 6, 2015 · 1 comment
Assignees
Milestone

Comments

@appel1
Copy link

appel1 commented Oct 6, 2015

The following code triggers a violation but didn't in StyleCop 'classic'.

new Foo
{
  Foo = "foo",
  Bar= i++
};

If you use the code fix the generated code causes an SA1500 violation.

@pdelvo
Copy link
Member

pdelvo commented Oct 6, 2015

grabbed

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