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

     1  package main
     2  
     3  import "fmt"
     4  
     5  var t [7 / 3]int
     6  
     7  func main() {
     8  	t[0] = 3 / 2
     9  	t[1] = 5 / 2
    10  	fmt.Println(t)
    11  }
    12  
    13  // Output:
    14  // [1 2]