...of evaluation according to spec · Issue #23188 · golang/...
Consider this program: packagemainimport"fmt"funcmain() {arr:=[]int{1,2}arr,arr[len(arr)-1]=arr[:len(arr)-1],3fmt.Println(arr) } This currently prints[1], and in fact it prints[1]with all versions of Go since Go