Compound assignment doesn't need to be implemented for signals, that's handled as an error by circom, eg:
error[T2000]: Typing error found
┌─ "./src/assets/circuit.circom":173:5
│
173 │ y += x;
│ ^^^^^^ The operator does not match the types of the assigned elements.
Assignments to signals do not allow the operator =, try using <== or <-- instead
Error: AnalysisError
Eg when running this program:
We get:
Compound assignment doesn't need to be implemented for signals, that's handled as an error by circom, eg: