github.com/gmemcc/yaegi@v0.12.1-0.20221128122509-aa99124c5d16/_test/const11.go (about)

     1  package main
     2  
     3  func main() {
     4  	const (
     5  		x = 2 * iota
     6  		dim
     7  	)
     8  	var t [dim * 2]int
     9  	println(t[0], len(t))
    10  }
    11  
    12  // Output:
    13  // 0 4