Unary expressions such as x =+ 1
are likely errors where the programmer really meant to use x += 1
. Unary +
operator was deprecated in solc v0.5.0
. (see here)
- Unary Expressions -> Typo Susceptibility
x += 1
x =+ 1
- Increment vs. Re-initialize
- Unary <- Deprecated
solc 0.5.0