This code doesn’t compile:
fun test() {
val array = LongArray(10)
var long = 0L
val int = 3
long += int // OK
array[0] += int // ! "No set method providing array access" ?
}
The same issue happens with MutableList<Long>
and Array<Long>
.