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

Operators like “*=” cause incorrect behavior #2

Open
dogfuntom opened this issue Jan 6, 2015 · 0 comments
Open

Operators like “*=” cause incorrect behavior #2

dogfuntom opened this issue Jan 6, 2015 · 0 comments

Comments

@dogfuntom
Copy link

            if (y.Any())
                x = 1;
            else
                x *= 2;

Such expression is refactored to:

            x = (y.Any()) ? 1 : 2;

but should be:

            x = (y.Any()) ? 1 : x * 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant