github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/a40.gno (about) 1 package main 2 3 import "fmt" 4 5 type rule uint8 6 7 const ( 8 r0 rule = iota 9 r1 10 r2 11 ) 12 13 var a = [...]int{ 14 r0: 1, 15 r1: 12, 16 } 17 18 func main() { 19 fmt.Println(a) 20 } 21 22 // Output: 23 // [1 12]