Closed Coolnesss closed 7 years ago
Thanks! The error message refers to the []
operator of your Vector class, not the append()
method, so it's actually correct. But I agree that the error message is a bit misleading here. 0eb01030b78a5a644b8551fcca080c67db6ecbb7 improves it so it's now:
./src/Vector.delta:17:24: error: cannot call mutating function 'Vector.[]' on immutable receiver
array.append(*arr[e]);
^
I get
for
Even though
this
should be mutable in the constructor