spec: index of non-addressable array is not addressable
Motivated by: func f() []int func g() [10]int f()[1] = 1 // ok g()[1] = 1 // ERROR R=gri CC=golang-dev https://golang.org/cl/1278041
Showing
Please
register
or
sign in
to comment
Motivated by: func f() []int func g() [10]int f()[1] = 1 // ok g()[1] = 1 // ERROR R=gri CC=golang-dev https://golang.org/cl/1278041