Skip to content

if/then/else unexpected behavior #187

@leinadsepol

Description

@leinadsepol

When we wrote
value = if (test) {v1} else {0.0} - v2;
We expect to have something equals to if (test) {v1 - v2} else {- v2} but it's equals to if (test) {v1} else {- v2};
A message should warn to use parentheses when if/then/else is used with operators .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions