github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/a47b.gno (about) 1 package main 2 3 func main() { 4 s1 := []int{1, 2} 5 i0 := &s1[0] 6 // new array allocated, so they have different base array 7 s1 = append(s1, 3) 8 ii0 := &s1[0] 9 println(i0 == ii0) 10 } 11 12 // Output: 13 // false