github.com/traefik/yaegi@v0.15.1/_test/a40.go (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]