github.com/traefik/yaegi@v0.15.1/_test/const9.go (about)

     1  package main
     2  
     3  const (
     4  	a = 2
     5  	b = c + d
     6  	c = a + d
     7  	d = e + f
     8  	e = b + 2
     9  	f = 4
    10  )
    11  
    12  func main() {
    13  	println(b)
    14  }
    15  
    16  // Error:
    17  // 5:2: constant definition loop