Open jvasileff opened 6 years ago
The typechecker allows a[i]++, but this fails on the backends:
a[i]++
Note that the typechecker does not allow a[i] += 1.
a[i] += 1
Full example:
shared void run() { value a = Array { 0, 0, 0 }; variable Integer i = 0; a[i++]++; print(a); // should be { 1, 0, 0 } print(i); // should be 1 }
I would vote to implement both.
The typechecker allows
a[i]++
, but this fails on the backends:Note that the typechecker does not allow
a[i] += 1
.Full example: