Skip to content

Assignment operators missing parenthesis #798

@TheLartians

Description

@TheLartians

When using arithmetic assignment operators, parenthesis should be added to the right operand.

Example

Input

let x = 0;
x *= 2+3 // = 0

Compiled

local x = 0
x = x * 2 + 3 --> 3

Expected

local x = 0
x = x * (2 + 3) --> 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions