github.com/gmemcc/yaegi@v0.12.1-0.20221128122509-aa99124c5d16/_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