Skip to content

Operators like “*=” cause incorrect behavior #2

@dogfuntom

Description

@dogfuntom
            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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions