Skip to content

+=, -=, *= and /= do not work #5

Description

@SquaredTiki

Running the following code:

 NSInteger num = 235

And then the following produces errors or does not return the correct value:

+= does not change the value

run: num += 5
5
Not assignable at 'num `+= 5'
out: 5

-= does not change the value

run: num -= 5
 5
 Not assignable at 'num `-= 5'
 out: 5

*= does not change the value

 run: num *= 5
 out: 5

/= produces an error

 run: num /= 5
 expecting scope at 'num `/= 5'
 break

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions