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

     1  package main
     2  
     3  func main() {
     4  	a, b, c, d := 1, 2, 3, 4
     5  	x := []int{
     6  		a: b,
     7  		c: d,
     8  	}
     9  	println(x)
    10  }
    11  
    12  // Output:
    13  // slice[(0 int),(2 int),(0 int),(4 int)]