github.com/traefik/yaegi@v0.15.1/_test/issue-1451.go (about) 1 package main 2 3 type t1 uint8 4 5 const ( 6 n1 t1 = iota 7 n2 8 ) 9 10 type T struct { 11 elem [n2 + 1]int 12 } 13 14 func main() { 15 println(len(T{}.elem)) 16 } 17 18 // Output: 19 // 2