Skip to content

Destructuring breaks preincrementing or predecrementing #1405

@BlockOG

Description

@BlockOG

A playground example

It should print

1 2
2 1

But instead prints

2 2
1 1

Because it puts the variable incrementing and decrementing before setting the variables

Metadata

Metadata

Assignees

No one assigned

    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