github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/array3.gno (about)

     1  package main
     2  
     3  import "fmt"
     4  
     5  func main() {
     6  	a := [3]int{2: 2, 1}
     7  	fmt.Println(a)
     8  }
     9  
    10  // Error:
    11  // runtime error: index out of range [3] with length 3