Web3 DAO | Ethereum Foundation Logo

v2 parser AugAssign stmt doesn't allow `x[0] += 1`

Organization

Ethereum Foundation

Deadline

N/A

Status

LIVE


INSTRUCTIONS

What is wrong?

The new parser (v2 branch) only supports augmented-assignments where the LHS is an identifier. Eg x += 1 is supported, but x.y += 1 isn't.

How can it be fixed

Good opportunity for someone to become familiar with the new parser, I guess.