github.com/traefik/yaegi@v0.15.1/_test/issue-1175.go (about) 1 package main 2 3 type Level int8 4 5 const ( 6 a Level = -1 7 b Level = 5 8 d = b - a + 1 9 ) 10 11 type counters [d]int 12 13 func main() { 14 println(len(counters{})) 15 } 16 17 // Output: 18 // 7